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

Commit 2602daf

Browse files
committed
refactor($compile): remove unnecessary call to isDefined()
(As discussed in https://github.com/angular/angular.js/pull/14406/files#r59131398.)
1 parent 9f681c4 commit 2602daf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/compile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3250,7 +3250,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
32503250
onChangesQueue.push(triggerOnChangesHook);
32513251
}
32523252
// If the has been a change on this property already then we need to reuse the previous value
3253-
if (isDefined(changes[key])) {
3253+
if (changes[key]) {
32543254
previousValue = changes[key].previousValue;
32553255
}
32563256
// Store this change

0 commit comments

Comments
 (0)