Added test to verify bug #185
[jquery.git] / src / event / event.js
index eb5d731..583f8f5 100644 (file)
@@ -15,6 +15,13 @@ jQuery.fn.extend({
         * },function(){
         *   $(this).removeClass("selected");
         * });
+        * 
+        * @test var count = 0;
+        * var fn1 = function() { count++; }
+        * var fn2 = function() { count--; }
+        * var link = $('#mark');
+        * link.click().toggle(fn1, fn2).click().click().click().click().click();
+        * ok( count == 1, "Check for toggle(fn, fn)" );
         *
         * @name toggle
         * @type jQuery
@@ -64,7 +71,7 @@ jQuery.fn.extend({
         * @param Function over The function to fire whenever the mouse is moved over a matched element.
         * @param Function out The function to fire whenever the mouse is moved off of a matched element.
         * @cat Events
-        */\r
+        */
        hover: function(f,g) {
                
                // A private function for haandling mouse 'hovering'
@@ -1484,6 +1491,7 @@ new function(){
                  *
                  * @private
                  * @name eventTesting
+                 * @cat Events
                  */
 
        var e = ("blur,focus,load,resize,scroll,unload,click,dblclick," +