vendor/assets/javascripts/angular-animate.js in angularjs-rails-1.5.5 vs vendor/assets/javascripts/angular-animate.js in angularjs-rails-1.5.6
- old
+ new
@@ -1,7 +1,7 @@
/**
- * @license AngularJS v1.5.5
+ * @license AngularJS v1.5.6
* (c) 2010-2016 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, angular) {'use strict';
@@ -130,11 +130,11 @@
function stripCommentsFromElement(element) {
if (element instanceof jqLite) {
switch (element.length) {
case 0:
- return [];
+ return element;
break;
case 1:
// there is no point of stripping anything if the element
// is the only element within the jqLite wrapper.
@@ -3241,10 +3241,11 @@
} else {
update(animation.element);
}
function update(element) {
- getRunner(element).setHost(newRunner);
+ var runner = getRunner(element);
+ if (runner) runner.setHost(newRunner);
}
}
function handleDestroyedElement() {
var runner = getRunner(element);