| Index: tools/dom/templates/html/impl/impl_Element.darttemplate
|
| diff --git a/tools/dom/templates/html/impl/impl_Element.darttemplate b/tools/dom/templates/html/impl/impl_Element.darttemplate
|
| index e0ccc6541c70adee6637ecd39dc0411eb08c5e5a..838b6ce1fcc490125f0229c96bd6bdbb45a7d58f 100644
|
| --- a/tools/dom/templates/html/impl/impl_Element.darttemplate
|
| +++ b/tools/dom/templates/html/impl/impl_Element.darttemplate
|
| @@ -895,18 +895,7 @@ $if DART2JS
|
|
|
| /**
|
| * Checks if this element matches the CSS selectors.
|
| - *
|
| - * Use [supportsMatches] to check if this is supported on the current
|
| - * platform.
|
| - *
|
| - * See also:
|
| - *
|
| - * * [supportsMatches]
|
| */
|
| - @SupportedBrowser(SupportedBrowser.CHROME)
|
| - @SupportedBrowser(SupportedBrowser.FIREFOX)
|
| - @SupportedBrowser(SupportedBrowser.IE, '10')
|
| - @SupportedBrowser(SupportedBrowser.SAFARI)
|
| @Experimental
|
| bool matches(String selectors) {
|
| if (JS('bool', '!!#.matches', this)) {
|
| @@ -920,28 +909,7 @@ $if DART2JS
|
| }
|
| throw new UnsupportedError("Not supported on this platform");
|
| }
|
| -
|
| - /**
|
| - * Checks if the matches function is supported on the current platform.
|
| - *
|
| - * See also:
|
| - *
|
| - * * [matches]
|
| - */
|
| - static bool get supportsMatches {
|
| - var e = new DivElement();
|
| - return JS('bool', '!!(#.matches || #.webkitMatchesSelector || '
|
| - '#.mozMatchesSelector || #.msMatchesSelector)', e, e, e, e);
|
| - }
|
| $else
|
| - /**
|
| - * Checks if the matches function is supported on the current platform.
|
| - *
|
| - * See also:
|
| - *
|
| - * * [matches]
|
| - */
|
| - static bool get supportsMatches => true;
|
| $endif
|
|
|
| $!MEMBERS
|
|
|