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

Commit 003c44e

Browse files
committed
perf($animate): don't join classes before it's necessary in resolveElementClasses
In ngAnimate, we can't do this because the behaviour is exposed via the API. But in core, we can avoid a bit of work.
1 parent 9e4701a commit 003c44e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/animate.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ var $AnimateProvider = ['$provide', function($provide) {
116116
}
117117
});
118118

119-
return (toAdd.length + toRemove.length) > 0 && [toAdd.join(' '), toRemove.join(' ')];
119+
return (toAdd.length + toRemove.length) > 0 && [toAdd.length && toAdd, toRemove.length && toRemove];
120120
}
121121

122122
function cachedClassManipulation(cache, classes, op) {

0 commit comments

Comments
 (0)