Skip to content

Commit f86de83

Browse files
Portugal, Marcelomportuga
authored andcommitted
Revert "revert(ui-grid-util): Reverting changes to reduce digest cycle"
This reverts commit 40b3828.
1 parent 40b3828 commit f86de83

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
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-
});
831+
}, 0, false);
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-
});
856+
}, 0, false);
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);
886+
var promise = $timeout(focusBySelector, 0, false);
887887
this.queue.push(promise);
888888
return promise;
889889
} else {

0 commit comments

Comments
 (0)