Skip to content
Permalink
Browse files

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 " "
  • Loading branch information
tj authored and jeresig committed Oct 23, 2009
1 parent 81f65ce commit 50cf4351a6c4b0031f268279b093e38850b90cd6
Showing with 4 additions and 4 deletions.
  1. +1 −1 src/ajax.js
  2. +3 −3 src/event.js
@@ -102,7 +102,7 @@ jQuery.fn.extend({
});

// 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){
return this.bind(o, f);
};
@@ -854,9 +854,9 @@ function bindReady() {
jQuery.event.add( window, "load", jQuery.ready );
}

jQuery.each( ("blur,focus,load,resize,scroll,unload,click,dblclick," +
"mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave," +
"change,select,submit,keydown,keypress,keyup,error").split(","), function( i, name ) {
jQuery.each( ("blur focus load resize scroll unload click dblclick " +
"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
"change select submit keydown keypress keyup error").split(" "), function( i, name ) {

// Handle event binding
jQuery.fn[ name ] = function( fn ) {

0 comments on commit 50cf435

Please sign in to comment.
You can’t perform that action at this time.