src/cm/media/js/lib/yui/yui3.0.0/build/node/node-event-simulate-debug.js
changeset 0 40c8f766c9b8
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/cm/media/js/lib/yui/yui3.0.0/build/node/node-event-simulate-debug.js	Mon Nov 23 15:14:29 2009 +0100
@@ -0,0 +1,31 @@
+/*
+Copyright (c) 2009, Yahoo! Inc. All rights reserved.
+Code licensed under the BSD License:
+http://developer.yahoo.net/yui/license.txt
+version: 3.0.0
+build: 1549
+*/
+YUI.add('node-event-simulate', function(Y) {
+
+/*
+ * Functionality to simulate events.
+ * @module node
+ * @for Node
+ * @submodule node-event-simulate
+ */
+
+    /**
+     * Simulates an event on the node.
+     * @param {String} type The type of event to simulate (i.e., "click").
+     * @param {Object} options (Optional) Extra options to copy onto the event object.
+     * @return {void}
+     * @method simulate
+     * @static
+     */     
+    Y.Node.prototype.simulate = function(type, options) {
+        Y.Event.simulate(Y.Node.getDOMNode(this), type, options);
+    };
+
+
+
+}, '3.0.0' ,{requires:['node-base', 'event-simulate']});