Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 0318761

Browse files
committed
refactor($animate): avoid unnecessary lookup
Closes #14902
1 parent 74f7b57 commit 0318761

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ngAnimate/animateQueue.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,11 +287,10 @@ var $$AnimateQueueProvider = ['$animateProvider', function($animateProvider) {
287287
bool = animationsEnabled = !!element;
288288
} else {
289289
var node = getDomNode(element);
290-
var recordExists = disabledElementsLookup.get(node);
291290

292291
if (argCount === 1) {
293292
// (element) - Element getter
294-
bool = !recordExists;
293+
bool = !disabledElementsLookup.get(node);
295294
} else {
296295
// (element, bool) - Element setter
297296
disabledElementsLookup.put(node, !bool);

0 commit comments

Comments
 (0)