mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Property changed disabled for inheritable properties only.
This commit is contained in:
@@ -80,7 +80,7 @@ export class Bindable extends dependencyObservable.DependencyObservable implemen
|
|||||||
trace.write("Bindable._onPropertyChanged(" + this + ") " + property.name, trace.categories.Binding);
|
trace.write("Bindable._onPropertyChanged(" + this + ") " + property.name, trace.categories.Binding);
|
||||||
super._onPropertyChanged(property, oldValue, newValue);
|
super._onPropertyChanged(property, oldValue, newValue);
|
||||||
if (this instanceof viewModule.View) {
|
if (this instanceof viewModule.View) {
|
||||||
if ((<viewModule.View>(<any>this))._isInheritedChange() === true) {
|
if (property.metadata.inheritable && (<viewModule.View>(<any>this))._isInheritedChange() === true) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user