| 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 part of $LIBRARYNAME; | 5 part of $LIBRARYNAME; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * Base class that supports listening for and dispatching browser events. | 8 * Base class that supports listening for and dispatching browser events. |
| 9 * | 9 * |
| 10 * Normally events are accessed via the Stream getter: | 10 * Normally events are accessed via the Stream getter: |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 /** | 54 /** |
| 55 * Base class for all browser objects that support events. | 55 * Base class for all browser objects that support events. |
| 56 * | 56 * |
| 57 * Use the [on] property to add, and remove events (rather than | 57 * Use the [on] property to add, and remove events (rather than |
| 58 * [$dom_addEventListener] and [$dom_removeEventListener] | 58 * [$dom_addEventListener] and [$dom_removeEventListener] |
| 59 * for compile-time type checks and a more concise API. | 59 * for compile-time type checks and a more concise API. |
| 60 */ | 60 */ |
| 61 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { | 61 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
| 62 | 62 |
| 63 // Custom element created callback. |
| 64 EventTarget._created(); |
| 65 |
| 63 /** | 66 /** |
| 64 * This is an ease-of-use accessor for event streams which should only be | 67 * This is an ease-of-use accessor for event streams which should only be |
| 65 * used when an explicit accessor is not available. | 68 * used when an explicit accessor is not available. |
| 66 */ | 69 */ |
| 67 Events get on => new Events(this); | 70 Events get on => new Events(this); |
| 68 $!MEMBERS | 71 $!MEMBERS |
| 69 } | 72 } |
| OLD | NEW |