diff --git a/src/instance/mdv.js b/src/instance/mdv.js index ce804af..b4bf7a5 100644 --- a/src/instance/mdv.js +++ b/src/instance/mdv.js @@ -32,7 +32,7 @@ template.bindingDelegate = this.syntax; return template.createInstance(this); }, - bind: function(name, model, path) { + bind: function(name, observable) { // note: binding is a prepare signal. This allows us to be sure that any // property changes that occur as a result of binding will be observed. if (!this._elementPrepared) { @@ -45,9 +45,9 @@ // clean out the closets this.unbind(name); // use n-way Polymer binding - var observer = this.bindProperty(property, model, path); + var observer = this.bindProperty(property, observable); // stick path on observer so it's available via this.bindings - observer.path = path; + observer.path = observable.path_; // reflect bound property to attribute when binding // to ensure binding is not left on attribute if property // does not update due to not changing. diff --git a/src/instance/properties.js b/src/instance/properties.js index 90d0726..174a241 100644 --- a/src/instance/properties.js +++ b/src/instance/properties.js @@ -22,7 +22,7 @@ var n$ = this._observeNames, pn$ = this._publishNames; if ((n$ && n$.length) || (pn$ && pn$.length)) { var self = this; - var o = this._propertyObserver = generateCompoundPathObserver(this); + var o = this._propertyObserver = new CompoundObserver(); for (var i=0, l=n$.length, n; (i