| Index: client/dom/generated/wrapping_dom.js
|
| diff --git a/client/dom/generated/wrapping_dom.js b/client/dom/generated/wrapping_dom.js
|
| index d4829a76d354ff7841ad3db51f6edc54cbcec5b6..7ce1c0da5c12b9864708e3e76106b77ca47980d7 100644
|
| --- a/client/dom/generated/wrapping_dom.js
|
| +++ b/client/dom/generated/wrapping_dom.js
|
| @@ -26680,7 +26680,10 @@ var __dom_type_map = {
|
|
|
| // Patches for non-WebKit browsers
|
| 'Window': native__DOMWindowWrappingImplementation_create__DOMWindowWrappingImplementation,
|
| - 'global': native__DOMWindowWrappingImplementation_create__DOMWindowWrappingImplementation
|
| + 'global': native__DOMWindowWrappingImplementation_create__DOMWindowWrappingImplementation,
|
| + 'KeyEvent': native__KeyboardEventWrappingImplementation_create__KeyboardEventWrappingImplementation, // Opera
|
| + 'HTMLPhraseElement': native__HTMLElementWrappingImplementation_create__HTMLElementWrappingImplementation, // IE9
|
| + 'MSStyleCSSProperties': native__CSSStyleDeclarationWrappingImplementation_create__CSSStyleDeclarationWrappingImplementation // IE9
|
| };
|
|
|
| function __dom_get_class_chrome(ptr) {
|
| @@ -26688,18 +26691,27 @@ function __dom_get_class_chrome(ptr) {
|
| }
|
|
|
| function __dom_get_class_generic(ptr) {
|
| - var isolatetoken = __dom_isolate_token();
|
| - var result = __dom_get_cached('dart_class', ptr.__proto__, isolatetoken);
|
| - if (result) {
|
| - return result;
|
| - }
|
| var str = Object.prototype.toString.call(ptr);
|
| var name = str.substring(8, str.length - 1);
|
| var cls = __dom_type_map[name];
|
| - __dom_set_cached('dart_class', ptr.__proto__, isolatetoken, cls);
|
| return cls;
|
| }
|
|
|
| +if (Object.__proto__) {
|
| + __dom_get_class_generic = function(ptr) {
|
| + var isolatetoken = __dom_isolate_token();
|
| + var result = __dom_get_cached('dart_class', ptr.__proto__, isolatetoken);
|
| + if (result) {
|
| + return result;
|
| + }
|
| + var str = Object.prototype.toString.call(ptr);
|
| + var name = str.substring(8, str.length - 1);
|
| + var cls = __dom_type_map[name];
|
| + __dom_set_cached('dart_class', ptr.__proto__, isolatetoken, cls);
|
| + return cls;
|
| + }
|
| +}
|
| +
|
| var __dom_get_class = __dom_get_class_generic;
|
| if (typeof window !== 'undefined' && // webworkers don't have a window
|
| window.constructor.name == "DOMWindow") {
|
|
|