~andreserl/maas/packaging_precise_rebase

« back to all changes in this revision

Viewing changes to debian/extras/jslibs/yui/node-event-simulate/node-event-simulate.js

  • Committer: Andres Rodriguez
  • Date: 2013-03-20 18:12:30 UTC
  • mfrom: (145.2.22 precise.sru)
  • Revision ID: andreserl@ubuntu.com-20130320181230-6l5guc0nhlv2z4p7
Re-base againts latest quantal released branch towards SRU

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
YUI 3.5.1 (build 22)
 
3
Copyright 2012 Yahoo! Inc. All rights reserved.
 
4
Licensed under the BSD License.
 
5
http://yuilibrary.com/license/
 
6
*/
 
7
YUI.add('node-event-simulate', function(Y) {
 
8
 
 
9
/**
 
10
 * Adds functionality to simulate events.
 
11
 * @module node
 
12
 * @submodule node-event-simulate
 
13
 */
 
14
 
 
15
    /**
 
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.
 
19
     * @return {void}
 
20
     * @for Node
 
21
     * @method simulate
 
22
     */     
 
23
    Y.Node.prototype.simulate = function(type, options) {
 
24
        Y.Event.simulate(Y.Node.getDOMNode(this), type, options);
 
25
    };
 
26
 
 
27
 
 
28
 
 
29
}, '3.5.1' ,{requires:['node-base', 'event-simulate']});