3
Copyright 2012 Yahoo! Inc. All rights reserved.
4
Licensed under the BSD License.
5
http://yuilibrary.com/license/
7
YUI.add('node-event-simulate', function(Y) {
10
* Adds functionality to simulate events.
12
* @submodule node-event-simulate
16
* Simulates an event on the node.
17
* @param {String} type The type of event to simulate (i.e., "click").
18
* @param {Object} options (Optional) Extra options to copy onto the event object.
23
Y.Node.prototype.simulate = function(type, options) {
24
Y.Event.simulate(Y.Node.getDOMNode(this), type, options);
29
}, '3.5.1' ,{requires:['node-base', 'event-simulate']});