| Index: sdk/lib/html/dart2js/html_dart2js.dart
|
| diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
|
| index 65781a02d04da5d86fb9fc54f15fde32d7a286e9..902cbd8bd188509af771073539c1e0783f016223 100644
|
| --- a/sdk/lib/html/dart2js/html_dart2js.dart
|
| +++ b/sdk/lib/html/dart2js/html_dart2js.dart
|
| @@ -6048,7 +6048,9 @@ class CustomEvent extends Event native "CustomEvent" {
|
| factory CustomEvent(String type,
|
| {bool canBubble: true, bool cancelable: true, Object detail}) {
|
|
|
| - final CustomEvent e = document.$dom_createEvent("CustomEvent");
|
| + final CustomEvent e = document.$dom_createEvent('CustomEvent');
|
| +
|
| + detail = convertDartToNative_SerializedScriptValue(detail);
|
| e.$dom_initCustomEvent(type, canBubble, cancelable, detail);
|
|
|
| return e;
|
| @@ -6056,10 +6058,12 @@ class CustomEvent extends Event native "CustomEvent" {
|
| // To suppress missing implicit constructor warnings.
|
| factory CustomEvent._() { throw new UnsupportedError("Not supported"); }
|
|
|
| + dynamic get detail => convertNativeToDart_SerializedScriptValue(this._get_detail);
|
| + @JSName('detail')
|
| @DomName('CustomEvent.detail')
|
| @DocsEditable()
|
| @Creates('Null')
|
| - final Object detail;
|
| + final dynamic _get_detail;
|
|
|
| @JSName('initCustomEvent')
|
| @DomName('CustomEvent.initCustomEvent')
|
|
|