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

Unified Diff: pkg/template_binding/lib/src/input_bindings.dart

Issue 34453003: Rename mdv -> template_binding, remove experiemntal apis from dart:html (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
« no previous file with comments | « pkg/template_binding/lib/src/element.dart ('k') | pkg/template_binding/lib/src/input_element.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/template_binding/lib/src/input_bindings.dart
diff --git a/pkg/mdv/lib/src/input_bindings.dart b/pkg/template_binding/lib/src/input_bindings.dart
similarity index 97%
rename from pkg/mdv/lib/src/input_bindings.dart
rename to pkg/template_binding/lib/src/input_bindings.dart
index b5467aa55e5342646ab64f71f19b408da192efc7..e00b3a9e6b24714c7c539d7670ccd613c99d0882 100644
--- a/pkg/mdv/lib/src/input_bindings.dart
+++ b/pkg/template_binding/lib/src/input_bindings.dart
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-part of mdv;
+part of template_binding;
abstract class _InputBinding extends NodeBinding {
StreamSubscription _eventSub;
@@ -86,7 +86,7 @@ class _CheckedBinding extends _InputBinding {
// CheckedBinding manually.
if (node is InputElement && node.type == 'radio') {
for (var r in _getAssociatedRadioButtons(node)) {
- var checkedBinding = r.bindings['checked'];
+ var checkedBinding = nodeBind(r).bindings['checked'];
if (checkedBinding != null) {
// Set the value directly to avoid an infinite call stack.
checkedBinding.value = false;
@@ -124,7 +124,7 @@ class _CheckedBinding extends _InputBinding {
static bool _isNodeInDocument(Node node) {
// On non-IE this works:
// return node.ownerDocument.contains(node);
- var document = node.document;
+ var document = node.ownerDocument;
if (node == document || node.parentNode == document) return true;
return document.documentElement.contains(node);
}
« no previous file with comments | « pkg/template_binding/lib/src/element.dart ('k') | pkg/template_binding/lib/src/input_element.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698