Dashboard sipadu mbip
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

node-event-simulate.js 793B

123456789101112131415161718192021222324252627282930
  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.4.0
  6. build: nightly
  7. */
  8. YUI.add('node-event-simulate', function(Y) {
  9. /**
  10. * Adds functionality to simulate events.
  11. * @module node
  12. * @submodule node-event-simulate
  13. */
  14. /**
  15. * Simulates an event on the node.
  16. * @param {String} type The type of event to simulate (i.e., "click").
  17. * @param {Object} options (Optional) Extra options to copy onto the event object.
  18. * @return {void}
  19. * @for Node
  20. * @method simulate
  21. */
  22. Y.Node.prototype.simulate = function(type, options) {
  23. Y.Event.simulate(Y.Node.getDOMNode(this), type, options);
  24. };
  25. }, '3.4.0' ,{requires:['node-base', 'event-simulate']});