Skip to content

Commit a880477

Browse files
prx-lmomportuga
authored andcommitted
[hotfix/3360]
- satisfy build process
1 parent 59bccab commit a880477

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

packages/core/src/js/services/rowSorter.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ module.service('rowSorter', ['uiGridConstants', function (uiGridConstants) {
7373
if (a == void 0) {
7474
return 1;
7575
}
76-
return -1;//b == void 0
76+
return -1;// b == void 0
7777
}
7878
return null;
7979
};
@@ -150,7 +150,7 @@ module.service('rowSorter', ['uiGridConstants', function (uiGridConstants) {
150150
badB = isNaN(numB);
151151

152152
// We want bad ones to get pushed to the bottom... which effectively is "greater than"
153-
if(badA || badB){
153+
if (badA || badB) {
154154
return (badA && badB) ? 0 : (badA ? 1 : -1);
155155
}
156156

@@ -382,10 +382,6 @@ module.service('rowSorter', ['uiGridConstants', function (uiGridConstants) {
382382
row.entity.$$uiGridIndex = idx;
383383
});
384384

385-
// IE9-11 HACK.... the 'rows' variable would be empty where we call rowSorter.getSortFn(...) below. We have to use a separate reference
386-
// var d = data.slice(0);
387-
//var r = rows.slice(0);
388-
389385
// Now actually sort the data
390386
var rowSortFn = function (rowA, rowB) {
391387
var tem = 0,
@@ -446,4 +442,4 @@ module.service('rowSorter', ['uiGridConstants', function (uiGridConstants) {
446442
return rowSorter;
447443
}]);
448444

449-
})();
445+
})();

0 commit comments

Comments
 (0)