Skip to content

Commit

Permalink
just printing number of digest cycles
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Mar 25, 2015
1 parent 9b425fc commit c2c12fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ng-count-digest-cycles.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
var count = 0;
$rootScope.$watch(function () {
count += 1;
console.log('digest cycle ran', count, 'times');
});

var $q = el.injector().get('$q');
Expand All @@ -39,7 +40,6 @@
scope.$$postDigest(function () {
scope[methodName] = fn;
console.log('restored', methodName);
console.log('digest cycle ran', count, 'time(s) during', name);
});
});
};
Expand Down

0 comments on commit c2c12fe

Please sign in to comment.