diff --git a/src/declaration/properties.js b/src/declaration/properties.js index 656d9b4..dbd77ff 100644 --- a/src/declaration/properties.js +++ b/src/declaration/properties.js @@ -129,7 +129,7 @@ } return map; }, - createPropertyAccessor: function(name) { + createPropertyAccessor: function(name, ignoreWrites) { var proto = this.prototype; var privateName = name + '_'; @@ -145,6 +145,10 @@ return this[privateName]; }, set: function(value) { + if (ignoreWrites) { + return this[privateName]; + } + var observable = this[privateObservable]; if (observable) { observable.setValue(value); @@ -161,16 +165,20 @@ }); }, createPropertyAccessors: function(prototype) { - var n$ = prototype._publishNames; + var n$ = prototype._computedNames; if (n$ && n$.length) { for (var i=0, l=n$.length, n, fn; (i - - - - + + + + + + + + +