| 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 @Experimental | 9 @Experimental |
| 10 $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { | 10 $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 * should not be used in your code. | 22 * should not be used in your code. |
| 23 * | 23 * |
| 24 * This event is fired whenever a template is instantiated via | 24 * This event is fired whenever a template is instantiated via |
| 25 * [createInstance]. | 25 * [createInstance]. |
| 26 */ | 26 */ |
| 27 // TODO(rafaelw): This is a hack, and is neccesary for the polyfill | 27 // TODO(rafaelw): This is a hack, and is neccesary for the polyfill |
| 28 // because custom elements are not upgraded during clone() | 28 // because custom elements are not upgraded during clone() |
| 29 @Experimental | 29 @Experimental |
| 30 static Stream<DocumentFragment> get instanceCreated { | 30 static Stream<DocumentFragment> get instanceCreated { |
| 31 if (_instanceCreated == null) { | 31 if (_instanceCreated == null) { |
| 32 _instanceCreated = new StreamController<DocumentFragment>(); | 32 _instanceCreated = new StreamController<DocumentFragment>(sync: true); |
| 33 } | 33 } |
| 34 return _instanceCreated.stream; | 34 return _instanceCreated.stream; |
| 35 } | 35 } |
| 36 | 36 |
| 37 /** | 37 /** |
| 38 * Ensures proper API and content model for template elements. | 38 * Ensures proper API and content model for template elements. |
| 39 * | 39 * |
| 40 * [instanceRef] can be used to set the [Element.ref] property of [template], | 40 * [instanceRef] can be used to set the [Element.ref] property of [template], |
| 41 * and use the ref's content will be used as source when createInstance() is | 41 * and use the ref's content will be used as source when createInstance() is |
| 42 * invoked. | 42 * invoked. |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 document.head.append(style); | 126 document.head.append(style); |
| 127 } | 127 } |
| 128 | 128 |
| 129 /** | 129 /** |
| 130 * A mapping of names to Custom Syntax objects. See [CustomBindingSyntax] for | 130 * A mapping of names to Custom Syntax objects. See [CustomBindingSyntax] for |
| 131 * more information. | 131 * more information. |
| 132 */ | 132 */ |
| 133 @Experimental | 133 @Experimental |
| 134 static Map<String, CustomBindingSyntax> syntax = {}; | 134 static Map<String, CustomBindingSyntax> syntax = {}; |
| 135 } | 135 } |
| OLD | NEW |