OLD | NEW |
1 <!-- | 1 <!-- |
2 // Copyright 2015 The Chromium Authors. All rights reserved. | 2 // Copyright 2015 The Chromium Authors. All rights reserved. |
3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
5 --> | 5 --> |
6 <script> | 6 <script> |
7 import "dart:mirrors"; | 7 import "dart:mirrors"; |
8 import "dart:sky"; | 8 import "dart:sky"; |
9 | 9 |
10 typedef dynamic _Converter(String value); | 10 typedef dynamic _Converter(String value); |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 throw new UnsupportedError('@Tagname can only be used on descendants of SkyE
lement'); | 155 throw new UnsupportedError('@Tagname can only be used on descendants of SkyE
lement'); |
156 | 156 |
157 String tagName = _getTagName(type); | 157 String tagName = _getTagName(type); |
158 Element template = definition.querySelector('template'); | 158 Element template = definition.querySelector('template'); |
159 | 159 |
160 document.registerElement(tagName, type); | 160 document.registerElement(tagName, type); |
161 _registery[tagName] = new _Registration(template) | 161 _registery[tagName] = new _Registration(template) |
162 ..parseAttributeSpec(definition); | 162 ..parseAttributeSpec(definition); |
163 } | 163 } |
164 </script> | 164 </script> |
OLD | NEW |