| 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)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
{ | 9 $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
{ |
| 10 $if DART2JS | 10 $if DART2JS |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 detail = convertDartToNative_SerializedScriptValue(detail); | 27 detail = convertDartToNative_SerializedScriptValue(detail); |
| 28 $endif | 28 $endif |
| 29 e._initCustomEvent(type, canBubble, cancelable, detail); | 29 e._initCustomEvent(type, canBubble, cancelable, detail); |
| 30 } catch(_) { | 30 } catch(_) { |
| 31 e._initCustomEvent(type, canBubble, cancelable, null); | 31 e._initCustomEvent(type, canBubble, cancelable, null); |
| 32 } | 32 } |
| 33 } else { | 33 } else { |
| 34 e._initCustomEvent(type, canBubble, cancelable, null); | 34 e._initCustomEvent(type, canBubble, cancelable, null); |
| 35 } | 35 } |
| 36 | 36 |
| 37 $if DARTIUM | |
| 38 // Need for identity. | |
| 39 js.setDartHtmlWrapperFor(e.blink_jsObject, e); | |
| 40 | |
| 41 $endif | |
| 42 return e; | 37 return e; |
| 43 } | 38 } |
| 44 | 39 |
| 45 @DomName('CustomEvent.detail') | 40 @DomName('CustomEvent.detail') |
| 46 get detail { | 41 get detail { |
| 47 if (_dartDetail != null) { | 42 if (_dartDetail != null) { |
| 48 return _dartDetail; | 43 return _dartDetail; |
| 49 } | 44 } |
| 50 return _detail; | 45 return _detail; |
| 51 } | 46 } |
| 52 $!MEMBERS | 47 $!MEMBERS |
| 53 } | 48 } |
| OLD | NEW |