| Index: tools/dom/templates/html/impl/impl_Comment.darttemplate
|
| diff --git a/tools/dom/templates/html/impl/impl_Comment.darttemplate b/tools/dom/templates/html/impl/impl_Comment.darttemplate
|
| index dc6e5741ee89938f61bf361c941215fe57138b47..9934bb0108abaa1046127f576741b1e061fc2fda 100644
|
| --- a/tools/dom/templates/html/impl/impl_Comment.darttemplate
|
| +++ b/tools/dom/templates/html/impl/impl_Comment.darttemplate
|
| @@ -8,10 +8,8 @@ part of $LIBRARYNAME;
|
| $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$MIXINS$IMPLEMENTS {
|
| $if DART2JS
|
| factory Comment([String data]) {
|
| - if (data != null) {
|
| - return JS('Comment', '#.createComment(#)', document, data);
|
| - }
|
| - return JS('Comment', '#.createComment("")', document);
|
| + return JS('returns:Comment;depends:none;effects:none;new:true',
|
| + '#.createComment(#)', document, data == null ? "" : data);
|
| }
|
| $endif
|
| $!MEMBERS}
|
|
|