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

Side by Side Diff: pkg/mdv/lib/src/node.dart

Issue 17552019: Reorganize mdv and observe packages (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merged Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/mdv/lib/src/input_element.dart ('k') | pkg/mdv/lib/src/template.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 part of mdv;
6
7 /** Extensions to the [Node] API. */
8 class _NodeExtension {
9 final Node node;
10
11 _NodeExtension(this.node);
12
13 /**
14 * Binds the attribute [name] to the [path] of the [model].
15 * Path is a String of accessors such as `foo.bar.baz`.
16 */
17 void bind(String name, model, String path) {
18 window.console.error('Unhandled binding to Node: '
19 '$this $name $model $path');
20 }
21
22 /** Unbinds the attribute [name]. */
23 void unbind(String name) {}
24
25 /** Unbinds all bound attributes. */
26 void unbindAll() {}
27
28 TemplateInstance _templateInstance;
29
30 /** Gets the template instance that instantiated this node, if any. */
31 TemplateInstance get templateInstance =>
32 _templateInstance != null ? _templateInstance :
33 (node.parent != null ? node.parent.templateInstance : null);
34 }
OLDNEW
« no previous file with comments | « pkg/mdv/lib/src/input_element.dart ('k') | pkg/mdv/lib/src/template.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698