We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c429ad8 commit a84393eCopy full SHA for a84393e
src/ng/animateRunner.js
@@ -81,7 +81,11 @@ var $$AnimateRunnerFactoryProvider = function() {
81
82
this._doneCallbacks = [];
83
this._tick = function(fn) {
84
- if ($document[0].hidden) {
+ var doc = $document[0];
85
+
86
+ // the document may not be ready or attached
87
+ // to the module for some internal tests
88
+ if (doc && doc.hidden) {
89
timeoutTick(fn);
90
} else {
91
rafTick(fn);
0 commit comments