]> source.dussan.org Git - jquery.git/commitdiff
fix style, prefix and typo in a few comments
authorEd Engelhardt <edengelhardt@gmail.com>
Tue, 22 May 2007 07:11:50 +0000 (07:11 +0000)
committerEd Engelhardt <edengelhardt@gmail.com>
Tue, 22 May 2007 07:11:50 +0000 (07:11 +0000)
src/event/event.js
src/jquery/jquery.js

index a402340db833d064129a8af13ea2fb43f53382cf..b49e1755dc2d897f747cd6397301f61ca3332914 100644 (file)
@@ -307,7 +307,7 @@ jQuery.fn.extend({
         * 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.
         *
@@ -570,7 +570,7 @@ jQuery.extend({
                                // Reset the list of functions
                                jQuery.readyList = null;
                        }
-                       // Remove event lisenter to avoid memory leak
+                       // Remove event listener to avoid memory leak
                        if ( jQuery.browser.mozilla || jQuery.browser.opera )
                                document.removeEventListener( "DOMContentLoaded", jQuery.ready, false );
                        
index 7466236458ac76f7c0b73bc6b46ca3017211c0d5..f40318b5dcbc0ea83e0a06dbfef60e46d3d0d695 100644 (file)
@@ -1484,13 +1484,13 @@ jQuery.extend({
                        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).toLowerCase(), div = doc.createElement("div"), tb = [];
 
                                var wrap =
-                                        // option or optgroup
+                                       // option or optgroup
                                        !s.indexOf("<opt") &&
                                        [1, "<select>", "</select>"] ||