]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - jssource/src_files/include/javascript/yui3/build/node/node-event-simulate.js
Release 6.5.0
[Github/sugarcrm.git] / jssource / src_files / include / javascript / yui3 / build / node / node-event-simulate.js
1 /*
2 Copyright (c) 2010, Yahoo! Inc. All rights reserved.
3 Code licensed under the BSD License:
4 http://developer.yahoo.com/yui/license.html
5 version: 3.3.0
6 build: 3167
7 */
8 YUI.add('node-event-simulate', function(Y) {
9
10 /**
11  * Adds functionality to simulate events.
12  * @module node
13  * @submodule node-event-simulate
14  */
15
16     /**
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.
20      * @return {void}
21      * @for Node
22      * @method simulate
23      */     
24     Y.Node.prototype.simulate = function(type, options) {
25         Y.Event.simulate(Y.Node.getDOMNode(this), type, options);
26     };
27
28
29
30 }, '3.3.0' ,{requires:['node-base', 'event-simulate']});