summaryrefslogtreecommitdiffstats
path: root/js/vendor/angular-animate/angular-animate.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/vendor/angular-animate/angular-animate.js')
-rw-r--r--js/vendor/angular-animate/angular-animate.js25
1 files changed, 15 insertions, 10 deletions
diff --git a/js/vendor/angular-animate/angular-animate.js b/js/vendor/angular-animate/angular-animate.js
index 7bd0d7a3a..3cf993882 100644
--- a/js/vendor/angular-animate/angular-animate.js
+++ b/js/vendor/angular-animate/angular-animate.js
@@ -1,5 +1,5 @@
/**
- * @license AngularJS v1.3.15
+ * @license AngularJS v1.3.19
* (c) 2010-2014 Google, Inc. http://angularjs.org
* License: MIT
*/
@@ -438,9 +438,11 @@ angular.module('ngAnimate', ['ng'])
//so that all the animated elements within the animation frame
//will be properly updated and drawn on screen. This is
//required to perform multi-class CSS based animations with
- //Firefox. DO NOT REMOVE THIS LINE.
- var a = bod.offsetWidth + 1;
- fn();
+ //Firefox. DO NOT REMOVE THIS LINE. DO NOT OPTIMIZE THIS LINE.
+ //THE MINIFIER WILL REMOVE IT OTHERWISE WHICH WILL RESULT IN AN
+ //UNPREDICTABLE BUG THAT IS VERY HARD TO TRACK DOWN AND WILL
+ //TAKE YEARS AWAY FROM YOUR LIFE!
+ fn(bod.offsetWidth);
});
};
}])
@@ -1198,18 +1200,21 @@ angular.module('ngAnimate', ['ng'])
}
return cache.promise = runAnimationPostDigest(function(done) {
- var parentElement = element.parent();
- var elementNode = extractElementNode(element);
- var parentNode = elementNode.parentNode;
+ var cache, parentNode, parentElement, elementNode = extractElementNode(element);
+ if (elementNode) {
+ cache = element.data(STORAGE_KEY);
+ element.removeData(STORAGE_KEY);
+
+ parentElement = element.parent();
+ parentNode = elementNode.parentNode;
+ }
+
// TODO(matsko): move this code into the animationsDisabled() function once #8092 is fixed
if (!parentNode || parentNode['$$NG_REMOVED'] || elementNode['$$NG_REMOVED']) {
done();
return;
}
- var cache = element.data(STORAGE_KEY);
- element.removeData(STORAGE_KEY);
-
var state = element.data(NG_ANIMATE_STATE) || {};
var classes = resolveElementClasses(element, cache, state.active);
return !classes