Skip to content

Commit 0163a2b

Browse files
committed
v1.4.5-build.4181+sha.dc48aad
1 parent 2cb93d5 commit 0163a2b

Some content is hidden

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

43 files changed

+466
-503
lines changed
9.48 MB
Binary file not shown.

snapshot/angular-animate.js

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.4.5-build.4180+sha.d0e50fd
2+
* @license AngularJS v1.4.5-build.4181+sha.dc48aad
33
* (c) 2010-2015 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/
@@ -1597,8 +1597,8 @@ var $$AnimateCssDriverProvider = ['$$animationProvider', function($$animationPro
15971597
// by the time...
15981598

15991599
var $$AnimateJsProvider = ['$animateProvider', function($animateProvider) {
1600-
this.$get = ['$injector', '$$AnimateRunner', '$$rAFMutex', '$$jqLite',
1601-
function($injector, $$AnimateRunner, $$rAFMutex, $$jqLite) {
1600+
this.$get = ['$injector', '$$AnimateRunner', '$$jqLite',
1601+
function($injector, $$AnimateRunner, $$jqLite) {
16021602

16031603
var applyAnimationClasses = applyAnimationClassesFactory($$jqLite);
16041604
// $animateJs(element, 'enter');
@@ -2502,19 +2502,34 @@ var $$AnimateQueueProvider = ['$animateProvider', function($animateProvider) {
25022502
}];
25032503
}];
25042504

2505-
var $$rAFMutexFactory = ['$$rAF', function($$rAF) {
2505+
var $$AnimateAsyncRunFactory = ['$$rAF', function($$rAF) {
2506+
var waitQueue = [];
2507+
2508+
function waitForTick(fn) {
2509+
waitQueue.push(fn);
2510+
if (waitQueue.length > 1) return;
2511+
$$rAF(function() {
2512+
for (var i = 0; i < waitQueue.length; i++) {
2513+
waitQueue[i]();
2514+
}
2515+
waitQueue = [];
2516+
});
2517+
}
2518+
25062519
return function() {
25072520
var passed = false;
2508-
$$rAF(function() {
2521+
waitForTick(function() {
25092522
passed = true;
25102523
});
2511-
return function(fn) {
2512-
passed ? fn() : $$rAF(fn);
2524+
return function(callback) {
2525+
passed ? callback() : waitForTick(callback);
25132526
};
25142527
};
25152528
}];
25162529

2517-
var $$AnimateRunnerFactory = ['$q', '$$rAFMutex', function($q, $$rAFMutex) {
2530+
var $$AnimateRunnerFactory = ['$q', '$sniffer', '$$animateAsyncRun',
2531+
function($q, $sniffer, $$animateAsyncRun) {
2532+
25182533
var INITIAL_STATE = 0;
25192534
var DONE_PENDING_STATE = 1;
25202535
var DONE_COMPLETE_STATE = 2;
@@ -2559,7 +2574,7 @@ var $$AnimateRunnerFactory = ['$q', '$$rAFMutex', function($q, $$rAFMutex) {
25592574
this.setHost(host);
25602575

25612576
this._doneCallbacks = [];
2562-
this._runInAnimationFrame = $$rAFMutex();
2577+
this._runInAnimationFrame = $$animateAsyncRun();
25632578
this._state = 0;
25642579
}
25652580

@@ -3055,7 +3070,7 @@ var $$AnimationProvider = ['$animateProvider', function($animateProvider) {
30553070
/* global angularAnimateModule: true,
30563071
30573072
$$BodyProvider,
3058-
$$rAFMutexFactory,
3073+
$$AnimateAsyncRunFactory,
30593074
$$AnimateChildrenDirective,
30603075
$$AnimateRunnerFactory,
30613076
$$AnimateQueueProvider,
@@ -3797,9 +3812,8 @@ angular.module('ngAnimate', [])
37973812

37983813
.directive('ngAnimateChildren', $$AnimateChildrenDirective)
37993814

3800-
.factory('$$rAFMutex', $$rAFMutexFactory)
3801-
38023815
.factory('$$AnimateRunner', $$AnimateRunnerFactory)
3816+
.factory('$$animateAsyncRun', $$AnimateAsyncRunFactory)
38033817

38043818
.provider('$$animateQueue', $$AnimateQueueProvider)
38053819
.provider('$$animation', $$AnimationProvider)

snapshot/angular-animate.min.js

Lines changed: 50 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

snapshot/angular-animate.min.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

snapshot/angular-aria.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.4.5-build.4180+sha.d0e50fd
2+
* @license AngularJS v1.4.5-build.4181+sha.dc48aad
33
* (c) 2010-2015 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/

snapshot/angular-aria.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

snapshot/angular-cookies.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.4.5-build.4180+sha.d0e50fd
2+
* @license AngularJS v1.4.5-build.4181+sha.dc48aad
33
* (c) 2010-2015 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/

snapshot/angular-cookies.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

snapshot/angular-loader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.4.5-build.4180+sha.d0e50fd
2+
* @license AngularJS v1.4.5-build.4181+sha.dc48aad
33
* (c) 2010-2015 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/
@@ -59,7 +59,7 @@ function minErr(module, ErrorConstructor) {
5959
return match;
6060
});
6161

62-
message += '\nhttp://errors.angularjs.org/1.4.5-build.4180+sha.d0e50fd/' +
62+
message += '\nhttp://errors.angularjs.org/1.4.5-build.4181+sha.dc48aad/' +
6363
(module ? module + '/' : '') + code;
6464

6565
for (i = SKIP_INDEXES, paramPrefix = '?'; i < templateArgs.length; i++, paramPrefix = '&') {

snapshot/angular-loader.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)