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

Side by Side Diff: lib/html/templates/html/impl/impl_Element.darttemplate

Issue 10909166: Rename NoSuchMethodException to NoSuchMethodError. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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
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 // TODO(jacobr): use _Lists.dart to remove some of the duplicated 5 // TODO(jacobr): use _Lists.dart to remove some of the duplicated
6 // functionality. 6 // functionality.
7 class _ChildrenElementList implements ElementList { 7 class _ChildrenElementList implements ElementList {
8 // Raw Element. 8 // Raw Element.
9 final _ElementImpl _element; 9 final _ElementImpl _element;
10 final _HTMLCollectionImpl _childElements; 10 final _HTMLCollectionImpl _childElements;
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 void addHTML(String text) { 738 void addHTML(String text) {
739 this.insertAdjacentHTML('beforeend', text); 739 this.insertAdjacentHTML('beforeend', text);
740 } 740 }
741 741
742 // Hooks to support custom WebComponents. 742 // Hooks to support custom WebComponents.
743 var xtag; 743 var xtag;
744 744
745 $if DARTIUM 745 $if DARTIUM
746 noSuchMethod(String name, List args) { 746 noSuchMethod(String name, List args) {
747 if (dynamicUnknownElementDispatcher == null) { 747 if (dynamicUnknownElementDispatcher == null) {
748 throw new NoSuchMethodException(this, name, args); 748 throw new NoSuchMethodError(this, name, args);
749 } else { 749 } else {
750 return dynamicUnknownElementDispatcher(this, name, args); 750 return dynamicUnknownElementDispatcher(this, name, args);
751 } 751 }
752 } 752 }
753 $else 753 $else
754 // TODO(vsm): Implement noSuchMethod or similar for dart2js. 754 // TODO(vsm): Implement noSuchMethod or similar for dart2js.
755 $endif 755 $endif
756 756
757 $if DART2JS 757 $if DART2JS
758 /** @domName Element.insertAdjacentText */ 758 /** @domName Element.insertAdjacentText */
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
873 873
874 /** @domName Document.createElement */ 874 /** @domName Document.createElement */
875 $if DART2JS 875 $if DART2JS
876 // Optimization to improve performance until the dart2js compiler inlines this 876 // Optimization to improve performance until the dart2js compiler inlines this
877 // method. 877 // method.
878 factory Element.tag(String tag) native "return document.createElement(tag)"; 878 factory Element.tag(String tag) native "return document.createElement(tag)";
879 $else 879 $else
880 factory Element.tag(String tag) => _document.$dom_createElement(tag); 880 factory Element.tag(String tag) => _document.$dom_createElement(tag);
881 $endif 881 $endif
882 } 882 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698