git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
81f65ce
)
Consistant splits using " " instead of ","
author
visionmedia
<tj@vision-media.ca>
Fri, 23 Oct 2009 15:52:38 +0000
(23:52 +0800)
committer
John Resig
<jeresig@gmail.com>
Tue, 27 Oct 2009 00:40:59 +0000
(08:40 +0800)
This was used in several other areas, and IMO is easier to read
and since nothing is multi-word then we misewell use " "
src/ajax.js
patch
|
blob
|
history
src/event.js
patch
|
blob
|
history
diff --git
a/src/ajax.js
b/src/ajax.js
index
858ac4b
..
1cb7ee5
100644
(file)
--- a/
src/ajax.js
+++ b/
src/ajax.js
@@
-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){
return this.bind(o, f);
};
jQuery.fn[o] = function(f){
return this.bind(o, f);
};
diff --git
a/src/event.js
b/src/event.js
index
69a1043
..
aabe77e
100644
(file)
--- a/
src/event.js
+++ b/
src/event.js
@@
-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," +
- "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 ) {
// Handle event binding
jQuery.fn[ name ] = function( fn ) {