Skip to content

Commit 3a608d0

Browse files
committed
refactor($animate): do not get affected by custom properties on Object.prototype
Fixes angular#14804
1 parent 56a9eab commit 3a608d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngAnimate/animateQueue.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ var $$AnimateQueueProvider = ['$animateProvider', function($animateProvider) {
158158
}
159159
);
160160

161-
var callbackRegistry = {};
161+
var callbackRegistry = Object.create(null);
162162

163163
// remember that the classNameFilter is set during the provider/config
164164
// stage therefore we can optimize here and setup a helper function

0 commit comments

Comments
 (0)