tot - Check-in [3]
Not logged in
[Browse]  [Home]  [Login]  [Reports]  [Search]  [Timeline
  [Patchset
Check-in Number: 3
Date: 2007-Feb-14 17:41:10 (local)
2007-Feb-14 16:41:10 (UTC)
User:rse
Branch:
Comment: add a bunch of fixes from my jQuery working area
Tickets:
Inspections:
Files:
jquery/jquery.fixes.diff      added-> 3
Added: jquery/jquery.fixes.diff
===================================================================
--- jquery/jquery.fixes.diff	                        (rev 0)
+++ jquery/jquery.fixes.diff	2007-02-14 16:41:10 UTC (rev 3)
@@ -0,0 +1,75 @@
+Index: jquery/src/jquery/jquery.js
+===================================================================
+--- jquery/src/jquery/jquery.js	(revision 1339)
++++ jquery/src/jquery/jquery.js	(working copy)
+@@ -225,7 +225,7 @@
+ 	 *
+ 	 * @example $("img").get(0);
+ 	 * @before <img src="test1.jpg"/> <img src="test2.jpg"/>
+-	 * @result [ <img src="test1.jpg"/> ]
++	 * @result <img src="test1.jpg"/>
+ 	 * @desc Selects all images in the document and returns the first one
+ 	 *
+ 	 * @name get
+@@ -1418,7 +1418,7 @@
+ 			if ( arg.constructor == Number )
+ 				arg = arg.toString();
+ 			
+-			 // Convert html string into DOM nodes
++			// Convert html string into DOM nodes
+ 			if ( typeof arg == "string" ) {
+ 				// Trim whitespace, otherwise indexOf won't work as expected
+ 				var s = jQuery.trim(arg), div = document.createElement("div"), tb = [];
+Index: jquery/src/event/event.js
+===================================================================
+--- jquery/src/event/event.js	(revision 1339)
++++ jquery/src/event/event.js	(working copy)
+@@ -240,7 +240,7 @@
+ 	 * Binds a handler to a particular event (like click) for each matched element.
+ 	 * The handler is executed only once for each element. Otherwise, the same rules
+ 	 * as described in bind() apply.
+-	 The event handler is passed an event object that you can use to prevent
++	 * The event handler is passed an event object that you can use to prevent
+ 	 * default behaviour. To stop both default action and event bubbling, your handler
+ 	 * has to return false.
+ 	 *
+Index: plugins/methods/string.js
+===================================================================
+--- plugins/methods/string.js	(revision 1339)
++++ plugins/methods/string.js	(working copy)
+@@ -16,7 +16,7 @@
+ 
+ 	/**
+ 	 * Adds a given method under the given name 
+-	 * to the Date prototype if it doesn't
++	 * to the String prototype if it doesn't
+ 	 * currently exist.
+ 	 *
+ 	 * @private
+@@ -150,4 +150,4 @@
+ 		return this.replace(/<\/?[^>]+>/gi, '');
+ 	});
+ 
+-})();
+\ No newline at end of file
++})();
+Index: plugins/methods/array.js
+===================================================================
+--- plugins/methods/array.js	(revision 1339)
++++ plugins/methods/array.js	(working copy)
+@@ -16,7 +16,7 @@
+ 	
+ 	/**
+ 	 * Adds a given method under the given name 
+-	 * to the Date prototype if it doesn't
++	 * to the Array prototype if it doesn't
+ 	 * currently exist.
+ 	 *
+ 	 * @private
+@@ -194,4 +194,4 @@
+ 		});
+ 	});
+ 	
+-})();
+\ No newline at end of file
++})();