| Index: tools/dom/templates/html/impl/impl_Document.darttemplate
|
| diff --git a/tools/dom/templates/html/impl/impl_Document.darttemplate b/tools/dom/templates/html/impl/impl_Document.darttemplate
|
| index f0fdc7b60f320149d0a532afad8bb5f73602adc2..e09502602c69847f72e379ff9695b620ff2da4ef 100644
|
| --- a/tools/dom/templates/html/impl/impl_Document.darttemplate
|
| +++ b/tools/dom/templates/html/impl/impl_Document.darttemplate
|
| @@ -35,4 +35,13 @@ $!MEMBERS
|
| ElementList queryAll(String selectors) {
|
| return new _FrozenElementList._wrap($dom_querySelectorAll(selectors));
|
| }
|
| +
|
| + /// Checks if [register] is supported on the current platform.
|
| + bool get supportsRegister {
|
| +$if DART2JS
|
| + return JS('bool', '("register" in #)', this);
|
| +$else
|
| + return true;
|
| +$endif
|
| + }
|
| }
|
|
|