2 Copyright (c) 2010, Yahoo! Inc. All rights reserved.
3 Code licensed under the BSD License:
4 http://developer.yahoo.com/yui/license.html
8 YUI.add('node-event-simulate', function(Y) {
11 * Adds 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.3.0' ,{requires:['node-base', 'event-simulate']});