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

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 18162004: [package:mdv] port createInstance change (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix copyright line 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:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index 8e307a41ff76ac3b206261f3a336c7ccebdf9c08..474979e2784ca8c4f02b861c90662d0fefcd7526 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -8333,9 +8333,9 @@ abstract class Element extends Node implements ElementTraversal native "Element"
* 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);
}
/**
@@ -20852,7 +20852,7 @@ class TableSectionElement extends _HTMLElement native "HTMLTableSectionElement"
@DocsEditable
Element $dom_insertRow(int index) native;
}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2013, 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.
@@ -20940,15 +20940,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