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 38e5632
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions dist/KoGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -2029,7 +2029,7 @@ window.kg.sortService = {
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 @@ -2101,7 +2101,6 @@ window.kg.sortService = {
}
});
data(unwrappedData);
return;
},
Sort: function (sortInfo, data) {
if (window.kg.sortService.isSorting) {
Expand Down
2 changes: 1 addition & 1 deletion dist/KoGrid.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/KoGrid.min.js.map

Large diffs are not rendered by default.

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 38e5632

Please sign in to comment.