OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * @fileoverview This contains an implementation of the EventTarget interface | 6 * @fileoverview This contains an implementation of the EventTarget interface |
7 * as defined by DOM Level 2 Events. | 7 * as defined by DOM Level 2 Events. |
8 */ | 8 */ |
9 | 9 base.exportTo('ui', function() { |
10 cr.define('cr', function() { | |
11 | 10 |
12 /** | 11 /** |
13 * Creates a new EventTarget. This class implements the DOM level 2 | 12 * Creates a new EventTarget. This class implements the DOM level 2 |
14 * EventTarget interface and can be used wherever those are used. | 13 * EventTarget interface and can be used wherever those are used. |
15 * @constructor | 14 * @constructor |
16 */ | 15 */ |
17 function EventTarget() { | 16 function EventTarget() { |
18 } | 17 } |
19 | 18 |
20 EventTarget.prototype = { | 19 EventTarget.prototype = { |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 | 94 |
96 return !prevented && event.returnValue; | 95 return !prevented && event.returnValue; |
97 } | 96 } |
98 }; | 97 }; |
99 | 98 |
100 // Export | 99 // Export |
101 return { | 100 return { |
102 EventTarget: EventTarget | 101 EventTarget: EventTarget |
103 }; | 102 }; |
104 }); | 103 }); |
OLD | NEW |