Skip to content

Commit

Permalink
Fix #295 - sortService fails when sorting by date
Browse files Browse the repository at this point in the history
Undefined variable dateRE is used instead of window.kg.sortService.dateRE
  • Loading branch information
crissdev committed Mar 15, 2015
1 parent efde390 commit b8b4b96
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/classes/sortService.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
d = '0' + d;
}
dateA = y + m + d;
mtch = b.match(dateRE);
mtch = b.match(window.kg.sortService.dateRE);
y = mtch[3];
d = mtch[2];
m = mtch[1];
Expand Down Expand Up @@ -236,7 +236,6 @@
}
});
data(unwrappedData);
return;
},
Sort: function (sortInfo, data) {
if (window.kg.sortService.isSorting) {
Expand Down

0 comments on commit b8b4b96

Please sign in to comment.