Property changed disabled for inheritable properties only.

This commit is contained in:
Nedyalko Nikolov
2015-05-08 13:50:49 +03:00
parent 2e4b2eacf2
commit 80336d2ea5

View File

@@ -80,7 +80,7 @@ export class Bindable extends dependencyObservable.DependencyObservable implemen
trace.write("Bindable._onPropertyChanged(" + this + ") " + property.name, trace.categories.Binding);
super._onPropertyChanged(property, oldValue, newValue);
if (this instanceof viewModule.View) {
if ((<viewModule.View>(<any>this))._isInheritedChange() === true) {
if (property.metadata.inheritable && (<viewModule.View>(<any>this))._isInheritedChange() === true) {
return
}
}