Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Commit ef3f6e8

Browse files
committed
enable binding reflection iff Platform enableBindingReflection is true.
1 parent 62829cb commit ef3f6e8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/instance/mdv.js

+7
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@
5858
// use n-way Polymer binding
5959
var observer = this.bindProperty(property, observable);
6060
this.reflectPropertyToAttribute(property);
61+
// NOTE: reflecting binding information is typically required only for
62+
// tooling. It has a performance cost so it's opt-in in Node.bind.
63+
if (Platform.enableBindingsReflection) {
64+
observer.path = observable.path_;
65+
this.bindings_ = this.bindings_ || {};
66+
this.bindings_[name] = observer;
67+
}
6168
return observer;
6269
}
6370
},

0 commit comments

Comments
 (0)