| Index: sdk/lib/html/templates/html/dart2js/impl_LocalWindow.darttemplate
|
| diff --git a/sdk/lib/html/templates/html/dart2js/impl_LocalWindow.darttemplate b/sdk/lib/html/templates/html/dart2js/impl_LocalWindow.darttemplate
|
| index 4d7ad54efd8c757f97ee8fc1e59cf6aa98e2273a..d05349c3550e6fb151454a8e75145964e8577213 100644
|
| --- a/sdk/lib/html/templates/html/dart2js/impl_LocalWindow.darttemplate
|
| +++ b/sdk/lib/html/templates/html/dart2js/impl_LocalWindow.darttemplate
|
| @@ -58,7 +58,8 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS native "@*DOMWindow" {
|
| }
|
| // Prevent compiled from thinking 'location' property is available for a Dart
|
| // member.
|
| - _protect_location() native 'location';
|
| + @JSName('location')
|
| + _protect_location() native;
|
|
|
| static _isDartLocation(thing) {
|
| // On Firefox the code that implements 'is Location' fails to find the patch
|
| @@ -90,11 +91,11 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS native "@*DOMWindow" {
|
| _cancelAnimationFrame(id);
|
| }
|
|
|
| - int _requestAnimationFrame(RequestAnimationFrameCallback callback)
|
| - native 'requestAnimationFrame';
|
| + @JSName('requestAnimationFrame')
|
| + int _requestAnimationFrame(RequestAnimationFrameCallback callback) native;
|
|
|
| - void _cancelAnimationFrame(int id)
|
| - native 'cancelAnimationFrame';
|
| + @JSName('cancelAnimationFrame')
|
| + void _cancelAnimationFrame(int id) native;
|
|
|
| _ensureRequestAnimationFrame() {
|
| if (JS('bool',
|
|
|