Skip to content

Commit

Permalink
fix(property): correct if/else branch for dynamic notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Mar 2, 2015
1 parent 0bef9a6 commit 9f79cbb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/property.js
Expand Up @@ -149,8 +149,7 @@ export class OptionsProperty extends BehaviorProperty {

if(changeHandlerName in executionContext){
selfSubscriber = (newValue, oldValue) => executionContext[changeHandlerName](newValue, oldValue);
}
if ('dynamicPropertyChanged' in executionContext) {
} else if ('dynamicPropertyChanged' in executionContext) {
selfSubscriber = (newValue, oldValue) => executionContext['dynamicPropertyChanged'](name, newValue, oldValue);
}

Expand Down

0 comments on commit 9f79cbb

Please sign in to comment.