Skip to content

Commit 0e337ed

Browse files
committed
v1.5.8-build.4896+sha.d406a15
1 parent 15a3599 commit 0e337ed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+562
-528
lines changed
9.67 MB
Binary file not shown.

snapshot/angular-animate.js

Lines changed: 36 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,10 @@
11
/**
2-
* @license AngularJS v1.5.8-build.4895+sha.4585b93
2+
* @license AngularJS v1.5.8-build.4896+sha.d406a15
33
* (c) 2010-2016 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/
66
(function(window, angular) {'use strict';
77

8-
/* jshint ignore:start */
9-
var noop = angular.noop;
10-
var copy = angular.copy;
11-
var extend = angular.extend;
12-
var jqLite = angular.element;
13-
var forEach = angular.forEach;
14-
var isArray = angular.isArray;
15-
var isString = angular.isString;
16-
var isObject = angular.isObject;
17-
var isUndefined = angular.isUndefined;
18-
var isDefined = angular.isDefined;
19-
var isFunction = angular.isFunction;
20-
var isElement = angular.isElement;
21-
228
var ELEMENT_NODE = 1;
239
var COMMENT_NODE = 8;
2410

@@ -43,7 +29,7 @@ var CSS_PREFIX = '', TRANSITION_PROP, TRANSITIONEND_EVENT, ANIMATION_PROP, ANIMA
4329
// Also, the only modern browser that uses vendor prefixes for transitions/keyframes is webkit
4430
// therefore there is no reason to test anymore for other vendor prefixes:
4531
// http://caniuse.com/#search=transition
46-
if (isUndefined(window.ontransitionend) && isDefined(window.onwebkittransitionend)) {
32+
if ((window.ontransitionend === void 0) && (window.onwebkittransitionend !== void 0)) {
4733
CSS_PREFIX = '-webkit-';
4834
TRANSITION_PROP = 'WebkitTransition';
4935
TRANSITIONEND_EVENT = 'webkitTransitionEnd transitionend';
@@ -52,7 +38,7 @@ if (isUndefined(window.ontransitionend) && isDefined(window.onwebkittransitionen
5238
TRANSITIONEND_EVENT = 'transitionend';
5339
}
5440

55-
if (isUndefined(window.onanimationend) && isDefined(window.onwebkitanimationend)) {
41+
if ((window.onanimationend === void 0) && (window.onwebkitanimationend !== void 0)) {
5642
CSS_PREFIX = '-webkit-';
5743
ANIMATION_PROP = 'WebkitAnimation';
5844
ANIMATIONEND_EVENT = 'webkitAnimationEnd animationend';
@@ -74,10 +60,6 @@ var ANIMATION_DURATION_PROP = ANIMATION_PROP + DURATION_KEY;
7460
var TRANSITION_DELAY_PROP = TRANSITION_PROP + DELAY_KEY;
7561
var TRANSITION_DURATION_PROP = TRANSITION_PROP + DURATION_KEY;
7662

77-
var isPromiseLike = function(p) {
78-
return p && p.then ? true : false;
79-
};
80-
8163
var ngMinErr = angular.$$minErr('ng');
8264
function assertArg(arg, name, reason) {
8365
if (!arg) {
@@ -133,7 +115,6 @@ function stripCommentsFromElement(element) {
133115
switch (element.length) {
134116
case 0:
135117
return element;
136-
break;
137118

138119
case 1:
139120
// there is no point of stripping anything if the element
@@ -146,7 +127,6 @@ function stripCommentsFromElement(element) {
146127

147128
default:
148129
return jqLite(extractElementNode(element));
149-
break;
150130
}
151131
}
152132

@@ -187,7 +167,7 @@ function applyAnimationClassesFactory($$jqLite) {
187167
$$removeClass($$jqLite, element, options.removeClass);
188168
options.removeClass = null;
189169
}
190-
}
170+
};
191171
}
192172

193173
function prepareAnimationOptions(options) {
@@ -323,7 +303,7 @@ function resolveElementClasses(existing, toAdd, toRemove) {
323303
}
324304

325305
function getDomNode(element) {
326-
return (element instanceof angular.element) ? element[0] : element;
306+
return (element instanceof jqLite) ? element[0] : element;
327307
}
328308

329309
function applyGeneratedPreparationClasses(element, event, options) {
@@ -513,7 +493,7 @@ var $$AnimateChildrenDirective = ['$interpolate', function($interpolate) {
513493
return {
514494
link: function(scope, element, attrs) {
515495
var val = attrs.ngAnimateChildren;
516-
if (angular.isString(val) && val.length === 0) { //empty attribute
496+
if (isString(val) && val.length === 0) { //empty attribute
517497
element.data(NG_ANIMATE_CHILDREN_DATA, true);
518498
} else {
519499
// Interpolate and set the value, so that it is available to
@@ -2384,7 +2364,7 @@ var $$AnimateQueueProvider = ['$animateProvider', function($animateProvider) {
23842364
},
23852365

23862366
off: function(event, container, callback) {
2387-
if (arguments.length === 1 && !angular.isString(arguments[0])) {
2367+
if (arguments.length === 1 && !isString(arguments[0])) {
23882368
container = arguments[0];
23892369
for (var eventType in callbackRegistry) {
23902370
callbackRegistry[eventType] = filterFromRegistry(callbackRegistry[eventType], container);
@@ -3389,20 +3369,6 @@ var ngAnimateSwapDirective = ['$animate', '$rootScope', function($animate, $root
33893369
};
33903370
}];
33913371

3392-
/* global angularAnimateModule: true,
3393-
3394-
ngAnimateSwapDirective,
3395-
$$AnimateAsyncRunFactory,
3396-
$$rAFSchedulerFactory,
3397-
$$AnimateChildrenDirective,
3398-
$$AnimateQueueProvider,
3399-
$$AnimationProvider,
3400-
$AnimateCssProvider,
3401-
$$AnimateCssDriverProvider,
3402-
$$AnimateJsProvider,
3403-
$$AnimateJsDriverProvider,
3404-
*/
3405-
34063372
/**
34073373
* @ngdoc module
34083374
* @name ngAnimate
@@ -4119,6 +4085,19 @@ var ngAnimateSwapDirective = ['$animate', '$rootScope', function($animate, $root
41194085
* (Note that you will need to trigger a digest within the callback to get angular to notice any scope-related changes.)
41204086
*/
41214087

4088+
var copy;
4089+
var extend;
4090+
var forEach;
4091+
var isArray;
4092+
var isDefined;
4093+
var isElement;
4094+
var isFunction;
4095+
var isObject;
4096+
var isString;
4097+
var isUndefined;
4098+
var jqLite;
4099+
var noop;
4100+
41224101
/**
41234102
* @ngdoc service
41244103
* @name $animate
@@ -4129,7 +4108,22 @@ var ngAnimateSwapDirective = ['$animate', '$rootScope', function($animate, $root
41294108
*
41304109
* Click here {@link ng.$animate to learn more about animations with `$animate`}.
41314110
*/
4132-
angular.module('ngAnimate', [])
4111+
angular.module('ngAnimate', [], function initAngularHelpers() {
4112+
// Access helpers from angular core.
4113+
// Do it inside a `config` block to ensure `window.angular` is available.
4114+
noop = angular.noop;
4115+
copy = angular.copy;
4116+
extend = angular.extend;
4117+
jqLite = angular.element;
4118+
forEach = angular.forEach;
4119+
isArray = angular.isArray;
4120+
isString = angular.isString;
4121+
isObject = angular.isObject;
4122+
isUndefined = angular.isUndefined;
4123+
isDefined = angular.isDefined;
4124+
isFunction = angular.isFunction;
4125+
isElement = angular.isElement;
4126+
})
41334127
.directive('ngAnimateSwap', ngAnimateSwapDirective)
41344128

41354129
.directive('ngAnimateChildren', $$AnimateChildrenDirective)

0 commit comments

Comments
 (0)