| 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 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
| 6 | 6 |
| 7 part of $LIBRARYNAME; | 7 part of $LIBRARYNAME; |
| 8 | 8 |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 // template. | 266 // template. |
| 267 // TODO(jmesserly): content is DocumentFragment or Element | 267 // TODO(jmesserly): content is DocumentFragment or Element |
| 268 var descendents = (content as dynamic).queryAll(_allTemplatesSelectors); | 268 var descendents = (content as dynamic).queryAll(_allTemplatesSelectors); |
| 269 if (content is Element && (content as Element).isTemplate) { | 269 if (content is Element && (content as Element).isTemplate) { |
| 270 _bootstrap(content); | 270 _bootstrap(content); |
| 271 } | 271 } |
| 272 | 272 |
| 273 descendents.forEach(_bootstrap); | 273 descendents.forEach(_bootstrap); |
| 274 } | 274 } |
| 275 | 275 |
| 276 static final String _allTemplatesSelectors = 'template, option[template], ' + | 276 static final String _allTemplatesSelectors = |
| 277 'template, option[template], optgroup[template], ' + |
| 277 Element._TABLE_TAGS.keys.map((k) => "$k[template]").join(", "); | 278 Element._TABLE_TAGS.keys.map((k) => "$k[template]").join(", "); |
| 278 | 279 |
| 279 static bool _initStyles; | 280 static bool _initStyles; |
| 280 | 281 |
| 281 static void _injectStylesheet() { | 282 static void _injectStylesheet() { |
| 282 if (_initStyles == true) return; | 283 if (_initStyles == true) return; |
| 283 _initStyles = true; | 284 _initStyles = true; |
| 284 | 285 |
| 285 var style = new StyleElement(); | 286 var style = new StyleElement(); |
| 286 style.text = r''' | 287 style.text = r''' |
| (...skipping 13 matching lines...) Expand all Loading... |
| 300 document.head.append(style); | 301 document.head.append(style); |
| 301 } | 302 } |
| 302 | 303 |
| 303 /** | 304 /** |
| 304 * A mapping of names to Custom Syntax objects. See [CustomBindingSyntax] for | 305 * A mapping of names to Custom Syntax objects. See [CustomBindingSyntax] for |
| 305 * more information. | 306 * more information. |
| 306 */ | 307 */ |
| 307 @Experimental | 308 @Experimental |
| 308 static Map<String, CustomBindingSyntax> syntax = {}; | 309 static Map<String, CustomBindingSyntax> syntax = {}; |
| 309 } | 310 } |
| OLD | NEW |