equal
deleted
inserted
replaced
|
1 /* |
|
2 Copyright (c) 2009, Yahoo! Inc. All rights reserved. |
|
3 Code licensed under the BSD License: |
|
4 http://developer.yahoo.net/yui/license.txt |
|
5 version: 3.0.0b1 |
|
6 build: 1163 |
|
7 */ |
|
8 YUI.add('node-event-simulate', function(Y) { |
|
9 |
|
10 /* |
|
11 * Functionality to simulate events. |
|
12 * @module node |
|
13 * @for Node |
|
14 * @submodule node-event-simulate |
|
15 */ |
|
16 |
|
17 /** |
|
18 * Simulates an event on the node. |
|
19 * @param {String} type The type of event to simulate (i.e., "click"). |
|
20 * @param {Object} options (Optional) Extra options to copy onto the event object. |
|
21 * @return {void} |
|
22 * @method simulate |
|
23 * @static |
|
24 */ |
|
25 Y.Node.prototype.simulate = function(type, options) { |
|
26 Y.Event.simulate(Y.Node.getDOMNode(this), type, options); |
|
27 }; |
|
28 |
|
29 |
|
30 |
|
31 }, '3.0.0b1' ,{requires:['node-base', 'event-simulate']}); |