1
1
/**
2
- * @license AngularJS v1.5.6
2
+ * @license AngularJS v1.5.7-build.4837+sha.f58d4fb
3
3
* (c) 2010-2016 Google, Inc. http://angularjs.org
4
4
* License: MIT
5
5
*/
@@ -809,7 +809,7 @@ function parseMaxTime(str) {
809
809
forEach ( values , function ( value ) {
810
810
// it's always safe to consider only second values and omit `ms` values since
811
811
// getComputedStyle will always handle the conversion for us
812
- if ( value . charAt ( value . length - 1 ) == 's' ) {
812
+ if ( value . charAt ( value . length - 1 ) === 's' ) {
813
813
value = value . substring ( 0 , value . length - 1 ) ;
814
814
}
815
815
value = parseFloat ( value ) || 0 ;
@@ -1130,7 +1130,7 @@ var $AnimateCssProvider = ['$animateProvider', function($animateProvider) {
1130
1130
var flags = { } ;
1131
1131
flags . hasTransitions = timings . transitionDuration > 0 ;
1132
1132
flags . hasAnimations = timings . animationDuration > 0 ;
1133
- flags . hasTransitionAll = flags . hasTransitions && timings . transitionProperty == 'all' ;
1133
+ flags . hasTransitionAll = flags . hasTransitions && timings . transitionProperty === 'all' ;
1134
1134
flags . applyTransitionDuration = hasToStyles && (
1135
1135
( flags . hasTransitions && ! flags . hasTransitionAll )
1136
1136
|| ( flags . hasAnimations && ! flags . hasTransitions ) ) ;
@@ -1422,7 +1422,7 @@ var $AnimateCssProvider = ['$animateProvider', function($animateProvider) {
1422
1422
$$jqLite . addClass ( element , activeClasses ) ;
1423
1423
1424
1424
if ( flags . recalculateTimingStyles ) {
1425
- fullClassName = node . className + ' ' + preparationClasses ;
1425
+ fullClassName = node . getAttribute ( 'class' ) + ' ' + preparationClasses ;
1426
1426
cacheKey = gcsHashFn ( node , fullClassName ) ;
1427
1427
1428
1428
timings = computeTimings ( node , fullClassName , cacheKey ) ;
@@ -1843,7 +1843,7 @@ var $$AnimateJsProvider = ['$animateProvider', function($animateProvider) {
1843
1843
var before , after ;
1844
1844
if ( animations . length ) {
1845
1845
var afterFn , beforeFn ;
1846
- if ( event == 'leave' ) {
1846
+ if ( event === 'leave' ) {
1847
1847
beforeFn = 'leave' ;
1848
1848
afterFn = 'afterLeave' ; // TODO(matsko): get rid of this
1849
1849
} else {
@@ -2205,7 +2205,7 @@ var $$AnimateQueueProvider = ['$animateProvider', function($animateProvider) {
2205
2205
rules . skip . push ( function ( element , newAnimation , currentAnimation ) {
2206
2206
// why should we trigger a new structural animation if the element will
2207
2207
// be removed from the DOM anyway?
2208
- return currentAnimation . event == 'leave' && newAnimation . structural ;
2208
+ return currentAnimation . event === 'leave' && newAnimation . structural ;
2209
2209
} ) ;
2210
2210
2211
2211
rules . skip . push ( function ( element , newAnimation , currentAnimation ) {
@@ -2245,8 +2245,10 @@ var $$AnimateQueueProvider = ['$animateProvider', function($animateProvider) {
2245
2245
2246
2246
this . $get = [ '$$rAF' , '$rootScope' , '$rootElement' , '$document' , '$$HashMap' ,
2247
2247
'$$animation' , '$$AnimateRunner' , '$templateRequest' , '$$jqLite' , '$$forceReflow' ,
2248
+ '$$isDocumentHidden' ,
2248
2249
function ( $$rAF , $rootScope , $rootElement , $document , $$HashMap ,
2249
- $$animation , $$AnimateRunner , $templateRequest , $$jqLite , $$forceReflow ) {
2250
+ $$animation , $$AnimateRunner , $templateRequest , $$jqLite , $$forceReflow ,
2251
+ $$isDocumentHidden ) {
2250
2252
2251
2253
var activeAnimationsLookup = new $$HashMap ( ) ;
2252
2254
var disabledElementsLookup = new $$HashMap ( ) ;
@@ -2502,15 +2504,15 @@ var $$AnimateQueueProvider = ['$animateProvider', function($animateProvider) {
2502
2504
return runner ;
2503
2505
}
2504
2506
2505
- var className = [ node . className , options . addClass , options . removeClass ] . join ( ' ' ) ;
2507
+ var className = [ node . getAttribute ( 'class' ) , options . addClass , options . removeClass ] . join ( ' ' ) ;
2506
2508
if ( ! isAnimatableClassName ( className ) ) {
2507
2509
close ( ) ;
2508
2510
return runner ;
2509
2511
}
2510
2512
2511
2513
var isStructural = [ 'enter' , 'move' , 'leave' ] . indexOf ( event ) >= 0 ;
2512
2514
2513
- var documentHidden = $document [ 0 ] . hidden ;
2515
+ var documentHidden = $$isDocumentHidden ( ) ;
2514
2516
2515
2517
// this is a hard disable of all animations for the application or on
2516
2518
// the element itself, therefore there is no need to continue further
@@ -2523,7 +2525,7 @@ var $$AnimateQueueProvider = ['$animateProvider', function($animateProvider) {
2523
2525
2524
2526
// there is no point in traversing the same collection of parent ancestors if a followup
2525
2527
// animation will be run on the same element that already did all that checking work
2526
- if ( ! skipAnimations && ( ! hasExistingAnimation || existingAnimation . state != PRE_DIGEST_STATE ) ) {
2528
+ if ( ! skipAnimations && ( ! hasExistingAnimation || existingAnimation . state !== PRE_DIGEST_STATE ) ) {
2527
2529
skipAnimations = ! areAnimationsAllowed ( element , parent , event ) ;
2528
2530
}
2529
2531
@@ -3935,7 +3937,7 @@ var ngAnimateSwapDirective = ['$animate', '$rootScope', function($animate, $root
3935
3937
deps="angular-animate.js;angular-route.js"
3936
3938
animations="true">
3937
3939
<file name="index.html">
3938
- <a href="#/">Home</a>
3940
+ <a href="#! /">Home</a>
3939
3941
<hr />
3940
3942
<div class="view-container">
3941
3943
<div ng-view class="view"></div>
@@ -3982,7 +3984,7 @@ var ngAnimateSwapDirective = ['$animate', '$rootScope', function($animate, $root
3982
3984
<h2>Welcome to the home page</h1>
3983
3985
<p>Please click on an element</p>
3984
3986
<a class="record"
3985
- ng-href="#/profile/{{ record.id }}"
3987
+ ng-href="#! /profile/{{ record.id }}"
3986
3988
ng-animate-ref="{{ record.id }}"
3987
3989
ng-repeat="record in records">
3988
3990
{{ record.title }}
0 commit comments