2 Copyright (c) 2009, Yahoo! Inc. All rights reserved.
3 Code licensed under the BSD License:
4 http://developer.yahoo.net/yui/license.txt
8 YUI.add('node-event-simulate', function(Y) {
11 * Functionality to simulate events.
14 * @submodule node-event-simulate
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.
25 Y.Node.prototype.simulate = function(type, options) {
26 Y.Event.simulate(Y.Node.getDOMNode(this), type, options);
31 }, '3.0.0' ,{requires:['node-base', 'event-simulate']});