Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Unified Diff: pkg/polymer/lib/src/instance.dart

Issue 42433002: port Node.bind to bd0a0591920da9091b326627a46a104a92c7efe7 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/polymer/lib/src/instance.dart
diff --git a/pkg/polymer/lib/src/instance.dart b/pkg/polymer/lib/src/instance.dart
index ed5d1fe17efffc0caf8f10164d7934db3246c231..045610be5ed5834323a79bfb7398b34101140ffb 100644
--- a/pkg/polymer/lib/src/instance.dart
+++ b/pkg/polymer/lib/src/instance.dart
@@ -422,10 +422,7 @@ abstract class Polymer implements Element, Observable, NodeBindExtension {
DocumentFragment instanceTemplate(Element template) =>
templateBind(template).createInstance(this, _polymerSyntax);
- NodeBinding createBinding(String name, model, String path) =>
- nodeBindFallback(this).createBinding(name, model, path);
-
- NodeBinding bind(String name, model, String path) {
+ NodeBinding bind(String name, model, [String path]) {
// 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 (!_elementPrepared) prepareElement();
@@ -636,7 +633,7 @@ abstract class Polymer implements Element, Observable, NodeBindExtension {
*/
// TODO(jmesserly): replace with something more localized, like:
// @ComputedField('myModel.path.to.otherProp');
- NodeBinding bindProperty(Symbol name, Object model, String path) =>
+ NodeBinding bindProperty(Symbol name, Object model, [String path]) =>
// apply Polymer two-way reference binding
_bindProperties(this, name, model, path);
@@ -1071,7 +1068,7 @@ class _PolymerBinding extends NodeBinding {
super.close();
}
- void boundValueChanged(newValue) {
+ void valueChanged(newValue) {
_lastValue = newValue;
_target.setField(_property, newValue);
}

Powered by Google App Engine
This is Rietveld 408576698