| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 part of $LIBRARYNAME; | 5 part of $LIBRARYNAME; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * Lazy implementation of the child nodes of an element that does not request | 8 * Lazy implementation of the child nodes of an element that does not request |
| 9 * the actual child nodes of an element until strictly necessary greatly | 9 * the actual child nodes of an element until strictly necessary greatly |
| 10 * improving performance for the typical cases where it is not required. | 10 * improving performance for the typical cases where it is not required. |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 | 268 |
| 269 /** | 269 /** |
| 270 * Print out a String representation of this Node. | 270 * Print out a String representation of this Node. |
| 271 */ | 271 */ |
| 272 String toString() => nodeValue == null ? super.toString() : nodeValue; | 272 String toString() => nodeValue == null ? super.toString() : nodeValue; |
| 273 | 273 |
| 274 /** | 274 /** |
| 275 * Binds the attribute [name] to the [path] of the [model]. | 275 * Binds the attribute [name] to the [path] of the [model]. |
| 276 * Path is a String of accessors such as `foo.bar.baz`. | 276 * Path is a String of accessors such as `foo.bar.baz`. |
| 277 */ | 277 */ |
| 278 @Experimental | 278 @Experimental() |
| 279 void bind(String name, model, String path) { | 279 void bind(String name, model, String path) { |
| 280 TemplateElement.mdvPackage(this).bind(name, model, path); | 280 TemplateElement.mdvPackage(this).bind(name, model, path); |
| 281 } | 281 } |
| 282 | 282 |
| 283 /** Unbinds the attribute [name]. */ | 283 /** Unbinds the attribute [name]. */ |
| 284 @Experimental | 284 @Experimental() |
| 285 void unbind(String name) { | 285 void unbind(String name) { |
| 286 TemplateElement.mdvPackage(this).unbind(name); | 286 TemplateElement.mdvPackage(this).unbind(name); |
| 287 } | 287 } |
| 288 | 288 |
| 289 /** Unbinds all bound attributes. */ | 289 /** Unbinds all bound attributes. */ |
| 290 @Experimental | 290 @Experimental() |
| 291 void unbindAll() { | 291 void unbindAll() { |
| 292 TemplateElement.mdvPackage(this).unbindAll(); | 292 TemplateElement.mdvPackage(this).unbindAll(); |
| 293 } | 293 } |
| 294 | 294 |
| 295 /** Gets the template instance that instantiated this node, if any. */ | 295 /** Gets the template instance that instantiated this node, if any. */ |
| 296 @Experimental | 296 @Experimental() |
| 297 TemplateInstance get templateInstance => | 297 TemplateInstance get templateInstance => |
| 298 TemplateElement.mdvPackage(this).templateInstance; | 298 TemplateElement.mdvPackage(this).templateInstance; |
| 299 | 299 |
| 300 $!MEMBERS | 300 $!MEMBERS |
| 301 } | 301 } |
| OLD | NEW |