Skip to content

Commit 738df91

Browse files
Portugal, MarceloPortugal, Marcelo
Portugal, Marcelo
authored and
Portugal, Marcelo
committed
fix(build): Removing performance improvements from ui-grid-util.js and comma separated vars.
1 parent bd51855 commit 738df91

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/js/core/directives/ui-grid.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
function ($scope, $elm, $attrs, gridUtil, $q, uiGridConstants,
77
gridClassFactory, $parse, $compile) {
88
// gridUtil.logDebug('ui-grid controller');
9-
var self = this,
10-
deregFunctions = [];
9+
var self = this;
10+
var deregFunctions = [];
1111

1212
self.grid = gridClassFactory.createGrid($scope.uiGrid);
1313

@@ -241,7 +241,8 @@ function uiGridDirective($window, gridUtil, uiGridConstants) {
241241

242242
// Setup event listeners and watchers
243243
function setup() {
244-
var deregisterLeftWatcher, deregisterRightWatcher;
244+
var deregisterLeftWatcher;
245+
var deregisterRightWatcher;
245246

246247
// Bind to window resize events
247248
angular.element($window).on('resize', gridResize);

src/js/core/services/ui-grid-util.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC
828828
} else {
829829
s.logWarn('[focus.byId] Element id ' + elementID + ' was not found.');
830830
}
831-
}, 0, false);
831+
});
832832
this.queue.push(promise);
833833
return promise;
834834
},
@@ -853,7 +853,7 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC
853853
if (element){
854854
element[0].focus();
855855
}
856-
}, 0, false);
856+
});
857857
this.queue.push(promise);
858858
return promise;
859859
},
@@ -883,7 +883,7 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC
883883
};
884884
this._purgeQueue();
885885
if (aSync){ //Do this asynchronysly
886-
var promise = $timeout(focusBySelector, 0, false);
886+
var promise = $timeout(focusBySelector);
887887
this.queue.push(promise);
888888
return promise;
889889
} else {

0 commit comments

Comments
 (0)