| 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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 } | 344 } |
| 345 } | 345 } |
| 346 } | 346 } |
| 347 | 347 |
| 348 /** | 348 /** |
| 349 * Get a stream of models, whenever the model changes. | 349 * Get a stream of models, whenever the model changes. |
| 350 */ | 350 */ |
| 351 Stream<Node> get onModelChanged { | 351 Stream<Node> get onModelChanged { |
| 352 var result; | 352 var result; |
| 353 result = new StreamController( | 353 result = new StreamController( |
| 354 onListen: () { _modelChangedStreams.add(result); } | 354 onListen: () { _modelChangedStreams.add(result); }, |
| 355 onCancel: () { _modelChangedStreams.remove(result); }); | 355 onCancel: () { _modelChangedStreams.remove(result); }); |
| 356 return result; | 356 return result; |
| 357 } | 357 } |
| 358 | 358 |
| 359 /** | 359 /** |
| 360 * Print out a String representation of this Node. | 360 * Print out a String representation of this Node. |
| 361 */ | 361 */ |
| 362 String toString() => localName == null ? | 362 String toString() => localName == null ? |
| 363 (nodeValue == null ? super.toString() : nodeValue) : localName; | 363 (nodeValue == null ? super.toString() : nodeValue) : localName; |
| 364 | 364 |
| 365 $!MEMBERS | 365 $!MEMBERS |
| 366 } | 366 } |
| OLD | NEW |