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 html; | 5 part of html; |
6 | 6 |
7 /// @domName $DOMNAME | 7 /// @domName $DOMNAME |
8 class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { | 8 class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
9 $!MEMBERS | 9 $!MEMBERS |
10 | 10 |
11 Element createTBody() { | 11 Element createTBody() { |
12 if (JS('bool', '!!#.createTBody', this)) { | 12 if (JS('bool', '!!#.createTBody', this)) { |
13 return this._createTBody(); | 13 return this._createTBody(); |
14 } | 14 } |
15 var tbody = new Element.tag('tbody'); | 15 var tbody = new Element.tag('tbody'); |
16 this.elements.add(tbody); | 16 this.elements.add(tbody); |
17 return tbody; | 17 return tbody; |
18 } | 18 } |
19 | 19 |
20 @JSName('createTBody') | 20 @JSName('createTBody') |
21 Element _createTBody() native; | 21 Element _createTBody() native; |
22 } | 22 } |
OLD | NEW |