Standardize on using double-quotes for string literals.
[jquery.git] / src / core.js
index eb67ba1..944e8a9 100644 (file)
@@ -164,7 +164,7 @@ jQuery.fn = jQuery.prototype = {
                return this.length;
        },
 
-       toArray: function(){
+       toArray: function() {
                return slice.call( this, 0 );
        },
 
@@ -258,7 +258,7 @@ jQuery.fn = jQuery.prototype = {
        },
 
        map: function( callback ) {
-               return this.pushStack( jQuery.map(this, function(elem, i){
+               return this.pushStack( jQuery.map(this, function( elem, i ) {
                        return callback.call( elem, i, elem );
                }));
        },
@@ -379,7 +379,10 @@ jQuery.extend({
        },
        
        bindReady: function() {
-               if ( readyBound ) { return; }
+               if ( readyBound ) {
+                       return;
+               }
+
                readyBound = true;
 
                // Catch cases where $(document).ready() is called after the
@@ -411,7 +414,7 @@ jQuery.extend({
 
                        try {
                                toplevel = window.frameElement == null;
-                       } catch(e){}
+                       } catch(e) {}
 
                        if ( document.documentElement.doScroll && toplevel ) {
                                doScrollCheck();
@@ -614,7 +617,7 @@ jQuery.extend({
        // Use of jQuery.browser is frowned upon.
        // More details: http://docs.jquery.com/Utilities/jQuery.browser
        browser: {
-               version: (/.*?(?:firefox|safari|opera|msie)[\/ ]([\d.]+)/.exec(userAgent) || [0,'0'])[1],
+               version: (/.*?(?:firefox|safari|opera|msie)[\/ ]([\d.]+)/.exec(userAgent) || [0,"0"])[1],
                safari: /safari/.test( userAgent ),
                opera: /opera/.test( userAgent ),
                msie: /msie/.test( userAgent ) && !/opera/.test( userAgent ),