Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Unified Diff: sdk/lib/html/dartium/html_dartium.dart

Issue 18162004: [package:mdv] port createInstance change (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
Index: sdk/lib/html/dartium/html_dartium.dart
diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
index c31f5887f883949f57b992f7d37e546214870ba2..78780f3cf877af68a65b8d7ca9a482182dd9037e 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -8749,9 +8749,9 @@ abstract class Element extends Node implements ElementTraversal {
* This is only supported if [isTemplate] is true.
*/
@Experimental
- DocumentFragment createInstance() {
+ DocumentFragment createInstance(model, String syntax) {
_ensureTemplate();
- return TemplateElement.mdvPackage(this).createInstance();
+ return TemplateElement.mdvPackage(this).createInstance(model, syntax);
}
/**
@@ -22549,7 +22549,6 @@ class TableSectionElement extends _HTMLElement {
@DocsEditable
Element $dom_insertRow(int index) native "HTMLTableSectionElement_insertRow_Callback";
}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -22637,15 +22636,6 @@ abstract class CustomBindingSyntax {
* the value, it should simply return the `model` value it was passed.
*/
getInstanceModel(Element template, model) => model;
-
- /**
- * This syntax method allows a syntax to provide an alterate expansion of
- * the [template] contents. When the template wants to create an instance,
- * it will call this method with the template element.
- *
- * By default this will call `template.createInstance()`.
- */
- getInstanceFragment(Element template) => template.createInstance();
}

Powered by Google App Engine
This is Rietveld 408576698