| Index: tools/dom/templates/html/impl/impl_HTMLLinkElement.darttemplate
|
| diff --git a/tools/dom/templates/html/impl/impl_DataTransferItemList.darttemplate b/tools/dom/templates/html/impl/impl_HTMLLinkElement.darttemplate
|
| similarity index 58%
|
| copy from tools/dom/templates/html/impl/impl_DataTransferItemList.darttemplate
|
| copy to tools/dom/templates/html/impl/impl_HTMLLinkElement.darttemplate
|
| index b43806f52ce0eaddf501945b4a6a9bcd158d6dea..fb38c2c07a8296b91cafba9bbed4ddda0f075ecc 100644
|
| --- a/tools/dom/templates/html/impl/impl_DataTransferItemList.darttemplate
|
| +++ b/tools/dom/templates/html/impl/impl_HTMLLinkElement.darttemplate
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
| +// Copyright (c) 2014, 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.
|
|
|
| @@ -8,12 +8,12 @@ part of $LIBRARYNAME;
|
| $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$MIXINS$IMPLEMENTS$NATIVESPEC {
|
| $!MEMBERS
|
|
|
| - DataTransferItem operator[] (int index) {
|
| + /// Checks if HTML imports are supported on the current platform.
|
| + bool get supportsImport {
|
| $if DART2JS
|
| - return JS('DataTransferItem', '#[#]', this, index);
|
| + return JS('bool', '("import" in #)', this);
|
| $else
|
| - return __getter__(index);
|
| + return true;
|
| $endif
|
| }
|
| -
|
| }
|
|
|