Skip to content

Commit

Permalink
fix(build): Removing performance improvements from ui-grid-util.js an…
Browse files Browse the repository at this point in the history
…d comma separated vars.
  • Loading branch information
Portugal, Marcelo authored and Portugal, Marcelo committed Mar 15, 2017
1 parent bd51855 commit 738df91
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions src/js/core/directives/ui-grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
function ($scope, $elm, $attrs, gridUtil, $q, uiGridConstants,
gridClassFactory, $parse, $compile) {
// gridUtil.logDebug('ui-grid controller');
var self = this,
deregFunctions = [];
var self = this;
var deregFunctions = [];

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

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

// Setup event listeners and watchers
function setup() {
var deregisterLeftWatcher, deregisterRightWatcher;
var deregisterLeftWatcher;
var deregisterRightWatcher;

// Bind to window resize events
angular.element($window).on('resize', gridResize);
Expand Down
6 changes: 3 additions & 3 deletions src/js/core/services/ui-grid-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC
} else {
s.logWarn('[focus.byId] Element id ' + elementID + ' was not found.');
}
}, 0, false);
});
this.queue.push(promise);
return promise;
},
Expand All @@ -853,7 +853,7 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC
if (element){
element[0].focus();
}
}, 0, false);
});
this.queue.push(promise);
return promise;
},
Expand Down Expand Up @@ -883,7 +883,7 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC
};
this._purgeQueue();
if (aSync){ //Do this asynchronysly
var promise = $timeout(focusBySelector, 0, false);
var promise = $timeout(focusBySelector);
this.queue.push(promise);
return promise;
} else {
Expand Down

0 comments on commit 738df91

Please sign in to comment.