| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
| 6 | 6 |
| 7 part of $LIBRARYNAME; | 7 part of $LIBRARYNAME; |
| 8 | 8 |
| 9 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { | 9 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
| 10 factory $CLASSNAME(String type, | 10 factory $CLASSNAME(String type, |
| 11 {bool canBubble: true, bool cancelable: true, Object detail}) { | 11 {bool canBubble: true, bool cancelable: true, Object detail}) { |
| 12 | 12 |
| 13 final CustomEvent e = document.$dom_createEvent('CustomEvent'); | 13 final CustomEvent e = document._createEvent('CustomEvent'); |
| 14 | 14 |
| 15 $if DART2JS | 15 $if DART2JS |
| 16 detail = convertDartToNative_SerializedScriptValue(detail); | 16 detail = convertDartToNative_SerializedScriptValue(detail); |
| 17 $endif | 17 $endif |
| 18 e.$dom_initCustomEvent(type, canBubble, cancelable, detail); | 18 e._initCustomEvent(type, canBubble, cancelable, detail); |
| 19 | 19 |
| 20 return e; | 20 return e; |
| 21 } | 21 } |
| 22 $!MEMBERS | 22 $!MEMBERS |
| 23 } | 23 } |
| OLD | NEW |