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 18 matching lines...) Expand all Loading... |
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 | 37 $if DARTIUM |
38 // Need for identity. | 38 // Need for identity. |
39 e.blink_jsObject['dart_class'] = e; | 39 js.setDartHtmlWrapperFor(e.blink_jsObject, e); |
40 | 40 |
41 $endif | 41 $endif |
42 return e; | 42 return e; |
43 } | 43 } |
44 | 44 |
45 @DomName('CustomEvent.detail') | 45 @DomName('CustomEvent.detail') |
46 get detail { | 46 get detail { |
47 if (_dartDetail != null) { | 47 if (_dartDetail != null) { |
48 return _dartDetail; | 48 return _dartDetail; |
49 } | 49 } |
50 return _detail; | 50 return _detail; |
51 } | 51 } |
52 $!MEMBERS | 52 $!MEMBERS |
53 } | 53 } |
OLD | NEW |