refactor($compile): remove unnecessary call to isDefined()

(As discussed in https://github.com/angular/angular.js/pull/14406/files#r59131398.)
This commit is contained in:
Georgios Kalpakas
2016-04-11 12:31:45 +03:00
parent ee8d8e12fb
commit d088fbeae3
+1 -1
View File
@@ -3237,7 +3237,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
onChangesQueue.push(triggerOnChangesHook);
}
// If the has been a change on this property already then we need to reuse the previous value
if (isDefined(changes[key])) {
if (changes[key]) {
previousValue = changes[key].previousValue;
}
// Store this change