Skip to content

Commit c1a874e

Browse files
committed
body
1 parent 80d32c3 commit c1a874e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ng-idle-apply-timing.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
// More complicated expression logic - longer cycle
44
// Also creates CPU profile for debugging bottlenecks (Chrome DevTools)
55

6+
// assumes the angular application is at least around the document's body
7+
68
/* global angular, performance */
7-
angular.element(document).injector().invoke(function timeApply($rootScope) {
9+
angular.element(document.body).injector().invoke(function timeApply($rootScope) {
810
console.profile('$apply');
911
var started = performance.now();
1012
$rootScope.$apply();

0 commit comments

Comments
 (0)