Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 | 1 // 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. | 2 // BSD-style license that can be found in the LICENSE file. |
| 4 | 3 |
| 5 // WARNING: Do not edit - generated code. | 4 // WARNING: Do not edit - generated code. |
| 6 | 5 |
| 7 part of $LIBRARYNAME; | 6 part of $LIBRARYNAME; |
| 8 | 7 |
| 9 | 8 |
| 10 /** | 9 /** |
| 11 * Model-Driven Views (MDV)'s native features enables a wide-range of use cases, | 10 * Model-Driven Views (MDV)'s native features enables a wide-range of use cases, |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 80 * | 79 * |
| 81 * - [template]: The template element which is about to create and insert an | 80 * - [template]: The template element which is about to create and insert an |
| 82 * instance. | 81 * instance. |
| 83 * - [model]: The data context for which this instance is being created. | 82 * - [model]: The data context for which this instance is being created. |
| 84 * | 83 * |
| 85 * The template element will always use the return value of `getInstanceModel` | 84 * The template element will always use the return value of `getInstanceModel` |
| 86 * as the model for the new instance. If the syntax does not wish to override | 85 * as the model for the new instance. If the syntax does not wish to override |
| 87 * the value, it should simply return the `model` value it was passed. | 86 * the value, it should simply return the `model` value it was passed. |
| 88 */ | 87 */ |
| 89 getInstanceModel(Element template, model) => model; | 88 getInstanceModel(Element template, model) => model; |
| 90 | |
| 91 /** | |
| 92 * This syntax method allows a syntax to provide an alterate expansion of | |
| 93 * the [template] contents. When the template wants to create an instance, | |
| 94 * it will call this method with the template element. | |
| 95 * | |
| 96 * By default this will call `template.createInstance()`. | |
| 97 */ | |
| 98 getInstanceFragment(Element template) => template.createInstance(); | |
|
Jennifer Messerly
2013/06/28 01:11:05
I removed this for now. This was me jumping the gu
| |
| 99 } | 89 } |
| 100 | 90 |
| 101 | 91 |
| 102 @Experimental | 92 @Experimental |
| 103 $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { | 93 $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
| 104 $!MEMBERS | 94 $!MEMBERS |
| 105 | 95 |
| 106 // For real TemplateElement use the actual DOM .content field instead of | 96 // For real TemplateElement use the actual DOM .content field instead of |
| 107 // our polyfilled expando. | 97 // our polyfilled expando. |
| 108 @Experimental | 98 @Experimental |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 301 document.head.append(style); | 291 document.head.append(style); |
| 302 } | 292 } |
| 303 | 293 |
| 304 /** | 294 /** |
| 305 * A mapping of names to Custom Syntax objects. See [CustomBindingSyntax] for | 295 * A mapping of names to Custom Syntax objects. See [CustomBindingSyntax] for |
| 306 * more information. | 296 * more information. |
| 307 */ | 297 */ |
| 308 @Experimental | 298 @Experimental |
| 309 static Map<String, CustomBindingSyntax> syntax = {}; | 299 static Map<String, CustomBindingSyntax> syntax = {}; |
| 310 } | 300 } |
| OLD | NEW |