/loggerhead/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/loggerhead/trunk

« back to all changes in this revision

Viewing changes to loggerhead/static/javascript/yui/build/node/node-event-simulate.js

  • Committer: Jelmer Vernooij
  • Date: 2020-06-04 19:43:36 UTC
  • mto: This revision was merged to the branch mainline in revision 500.
  • Revision ID: jelmer@jelmer.uk-20200604194336-ahskrf4rmy1qaxzs
Port loggerhead from YUI to jQuery.

YUI has been deprecated since 2014 and is due to be removed from Debian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
3
 
Code licensed under the BSD License:
4
 
http://developer.yahoo.net/yui/license.txt
5
 
version: 3.0.0pr2
6
 
*/
7
 
YUI.add('node-event-simulate', function(Y) {
8
 
 
9
 
/*
10
 
 * Functionality to simulate events.
11
 
 * @module node
12
 
 * @for 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
 
     * @method simulate
22
 
     * @static
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.0.0pr2' ,{requires:['node-base']});