2
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
3
Code licensed under the BSD License:
4
http://developer.yahoo.net/yui/license.txt
7
YUI.add('node-event-simulate', function(Y) {
10
* Functionality to simulate events.
13
* @submodule node-event-simulate
17
* Simulates an event on the node.
18
* @param {String} type The type of event to simulate (i.e., "click").
19
* @param {Object} options (Optional) Extra options to copy onto the event object.
24
Y.Node.prototype.simulate = function(type, options){
25
Y.Event.simulate(Y.Node.getDOMNode(this), type, options);
30
}, '3.0.0pr2' ,{requires:['node-base']});