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

Side by Side Diff: tools/dom/templates/html/impl/impl_Node.darttemplate

Issue 13744003: Add back localName and improve toString for Html nodes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 | « tools/dom/templates/html/impl/impl_Element.darttemplate ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 */ 417 */
418 Stream<Node> get onModelChanged { 418 Stream<Node> get onModelChanged {
419 if (_modelChangedStream == null) { 419 if (_modelChangedStream == null) {
420 // Ensure the model is cached locally to minimize change notifications. 420 // Ensure the model is cached locally to minimize change notifications.
421 _model = model; 421 _model = model;
422 _modelChangedStream = new StreamController.broadcast(); 422 _modelChangedStream = new StreamController.broadcast();
423 } 423 }
424 return _modelChangedStream.stream; 424 return _modelChangedStream.stream;
425 } 425 }
426 426
427 /**
428 * Print out a String representation of this Node.
429 */
430 String toString() => localName == null ?
431 (nodeValue == null ? super.toString() : nodeValue) : localName;
432
427 $!MEMBERS 433 $!MEMBERS
428 } 434 }
OLDNEW
« no previous file with comments | « tools/dom/templates/html/impl/impl_Element.darttemplate ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698