mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-21 04:41:51 +00:00
fix(animate): cleanup global leaked vars.
This commit is contained in:
parent
6e8bd786ba
commit
2e72239133
1 changed files with 4 additions and 3 deletions
|
|
@ -183,9 +183,6 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var noop = angular.noop;
|
|
||||||
var forEach = angular.forEach;
|
|
||||||
|
|
||||||
angular.module('ngAnimate', ['ng'])
|
angular.module('ngAnimate', ['ng'])
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -201,6 +198,8 @@ angular.module('ngAnimate', ['ng'])
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
.config(['$provide', '$animateProvider', function($provide, $animateProvider) {
|
.config(['$provide', '$animateProvider', function($provide, $animateProvider) {
|
||||||
|
var noop = angular.noop;
|
||||||
|
var forEach = angular.forEach;
|
||||||
var selectors = $animateProvider.$$selectors;
|
var selectors = $animateProvider.$$selectors;
|
||||||
|
|
||||||
var NG_ANIMATE_STATE = '$$ngAnimateState';
|
var NG_ANIMATE_STATE = '$$ngAnimateState';
|
||||||
|
|
@ -543,6 +542,8 @@ angular.module('ngAnimate', ['ng'])
|
||||||
}])
|
}])
|
||||||
|
|
||||||
.animation('', ['$window','$sniffer', '$timeout', function($window, $sniffer, $timeout) {
|
.animation('', ['$window','$sniffer', '$timeout', function($window, $sniffer, $timeout) {
|
||||||
|
var noop = angular.noop;
|
||||||
|
var forEach = angular.forEach;
|
||||||
function animate(element, className, done) {
|
function animate(element, className, done) {
|
||||||
if (!($sniffer.transitions || $sniffer.animations)) {
|
if (!($sniffer.transitions || $sniffer.animations)) {
|
||||||
done();
|
done();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue