| 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 e.blink_jsObject['dart_class'] = e; |
| 40 |
| 41 $endif |
| 37 return e; | 42 return e; |
| 38 } | 43 } |
| 39 | 44 |
| 40 @DomName('CustomEvent.detail') | 45 @DomName('CustomEvent.detail') |
| 41 get detail { | 46 get detail { |
| 42 if (_dartDetail != null) { | 47 if (_dartDetail != null) { |
| 43 return _dartDetail; | 48 return _dartDetail; |
| 44 } | 49 } |
| 45 return _detail; | 50 return _detail; |
| 46 } | 51 } |
| 47 $!MEMBERS | 52 $!MEMBERS |
| 48 } | 53 } |
| OLD | NEW |