diff --git a/src/js/core/services/ui-grid-util.js b/src/js/core/services/ui-grid-util.js index c30ec654fa..efadbaf7b1 100644 --- a/src/js/core/services/ui-grid-util.js +++ b/src/js/core/services/ui-grid-util.js @@ -21,7 +21,7 @@ if (typeof Function.prototype.bind !== "function") { }; } -function getStyles (elem) { +function getStyles (elem) { var e = elem; if (typeof(e.length) !== 'undefined' && e.length) { e = elem[0]; @@ -1175,7 +1175,7 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC if (timeout) { $timeout.cancel(timeout); } - timeout = $timeout(later, wait); + timeout = $timeout(later, wait, false); if (callNow) { result = func.apply(context, args); } @@ -1225,7 +1225,7 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC function runFunc(endDate){ lastCall = +new Date(); func.apply(context, args); - $interval(function(){ queued = null; }, 0, 1); + $interval(function(){ queued = null; }, 0, 1, false); } return function(){ @@ -1238,7 +1238,7 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC runFunc(); } else if (options.trailing){ - queued = $interval(runFunc, wait - sinceLast, 1); + queued = $interval(runFunc, wait - sinceLast, 1, false); } } };