Commit 50cf4351 authored by visionmedia's avatar visionmedia Committed by John Resig

Consistant splits using " " instead of ","

This was used in several other areas, and IMO is easier to read
and since nothing is multi-word then we misewell use " "
parent 81f65ce3
...@@ -102,7 +102,7 @@ jQuery.fn.extend({ ...@@ -102,7 +102,7 @@ jQuery.fn.extend({
}); });
// Attach a bunch of functions for handling common AJAX events // Attach a bunch of functions for handling common AJAX events
jQuery.each( "ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","), function(i,o){ jQuery.each( "ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "), function(i,o){
jQuery.fn[o] = function(f){ jQuery.fn[o] = function(f){
return this.bind(o, f); return this.bind(o, f);
}; };
......
...@@ -854,9 +854,9 @@ function bindReady() { ...@@ -854,9 +854,9 @@ function bindReady() {
jQuery.event.add( window, "load", jQuery.ready ); jQuery.event.add( window, "load", jQuery.ready );
} }
jQuery.each( ("blur,focus,load,resize,scroll,unload,click,dblclick," + jQuery.each( ("blur focus load resize scroll unload click dblclick " +
"mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave," + "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
"change,select,submit,keydown,keypress,keyup,error").split(","), function( i, name ) { "change select submit keydown keypress keyup error").split(" "), function( i, name ) {
// Handle event binding // Handle event binding
jQuery.fn[ name ] = function( fn ) { jQuery.fn[ name ] = function( fn ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment