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

Unified Diff: pkg/mdv/lib/src/node.dart

Issue 22253002: fix packages for latest SDK changes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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/mdv/lib/src/node.dart
diff --git a/pkg/mdv/lib/src/node.dart b/pkg/mdv/lib/src/node.dart
index d2fa6d40c7b239734dfae4d7c33a9ed5a73f3fc1..d5eb1121800518ee2102b595dc1051d6a7bf9f6f 100644
--- a/pkg/mdv/lib/src/node.dart
+++ b/pkg/mdv/lib/src/node.dart
@@ -19,9 +19,12 @@ class _NodeExtension {
*/
NodeBinding bind(String name, model, String path) {
var binding = bindings[name];
- if (binding != null) binding.close();
+ if (binding != null) binding.close();
+
+ // Note: dispatch through the xtag so a custom element can override it.
+ binding = (node is Element ? node.xtag : node)
+ .createBinding(name, model, path);
- binding = createBinding(name, model, path);
bindings[name] = binding;
if (binding == null) {
window.console.error('Unhandled binding to Node: '

Powered by Google App Engine
This is Rietveld 408576698