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

Commit 489224b

Browse files
committed
refactor($animate): avoid unnecessary lookup
Closes #14902
1 parent 76ca4f4 commit 489224b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ngAnimate/animateQueue.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -289,11 +289,10 @@ var $$AnimateQueueProvider = ['$animateProvider', function($animateProvider) {
289289
bool = animationsEnabled = !!element;
290290
} else {
291291
var node = getDomNode(element);
292-
var recordExists = disabledElementsLookup.get(node);
293292

294293
if (argCount === 1) {
295294
// (element) - Element getter
296-
bool = !recordExists;
295+
bool = !disabledElementsLookup.get(node);
297296
} else {
298297
// (element, bool) - Element setter
299298
disabledElementsLookup.put(node, !bool);

0 commit comments

Comments
 (0)