Chromium Code Reviews| Index: lib/html/templates/html/impl/impl_Element.darttemplate |
| diff --git a/lib/html/templates/html/impl/impl_Element.darttemplate b/lib/html/templates/html/impl/impl_Element.darttemplate |
| index 7e0732c021149ea959b39111d0da79a1566ae63c..6bc9fb08f8be813d7a235324b8471b70a28b3b5b 100644 |
| --- a/lib/html/templates/html/impl/impl_Element.darttemplate |
| +++ b/lib/html/templates/html/impl/impl_Element.darttemplate |
| @@ -743,7 +743,7 @@ $endif |
| $if DART2JS |
| /** @domName Element.insertAdjacentText */ |
| void insertAdjacentText(String where, String text) { |
| - if (JS('bool', '!!this.insertAdjacentText')) { |
| + if (JS('bool', '!!#.insertAdjacentText', this)) { |
|
blois
2012/10/12 16:55:19
indentation
sra1
2012/10/12 21:39:47
Done.
|
| _insertAdjacentText(where, text); |
| } else { |
| _insertAdjacentNode(where, new Text(text)); |
| @@ -755,7 +755,7 @@ $if DART2JS |
| /** @domName Element.insertAdjacentHTML */ |
| void insertAdjacentHTML(String where, String text) { |
| - if (JS('bool', '!!this.insertAdjacentHTML')) { |
| + if (JS('bool', '!!#.insertAdjacentHTML', this)) { |
| _insertAdjacentHTML(where, text); |
| } else { |
| _insertAdjacentNode(where, new DocumentFragment.html(text)); |
| @@ -767,7 +767,7 @@ $if DART2JS |
| /** @domName Element.insertAdjacentHTML */ |
| Element insertAdjacentElement(String where, Element element) { |
| - if (JS('bool', '!!this.insertAdjacentElement')) { |
| + if (JS('bool', '!!#.insertAdjacentElement', this)) { |
| _insertAdjacentElement(where, element); |
| } else { |
| _insertAdjacentNode(where, element); |
| @@ -862,8 +862,8 @@ class _ElementFactoryProvider { |
| $if DART2JS |
| // Optimization to improve performance until the dart2js compiler inlines this |
| // method. |
| - static Element createElement_tag(String tag) |
| - native "return document.createElement(tag)"; |
| + static Element createElement_tag(String tag) => |
|
floitsch
2012/10/12 13:40:17
move '=>' to next line.
sra1
2012/10/12 21:39:47
To be resolved outside of this CL.
|
| + JS('Element', 'document.createElement(#)', tag); |
| $else |
| static Element createElement_tag(String tag) => |
| _document.$dom_createElement(tag); |