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:
6a47e28
)
Applied patch provided by Taku Sano fixing the compression errors.
author
John Resig
<jeresig@gmail.com>
Sun, 13 Aug 2006 01:29:27 +0000
(
01:29
+0000)
committer
John Resig
<jeresig@gmail.com>
Sun, 13 Aug 2006 01:29:27 +0000
(
01:29
+0000)
ajax/ajax.js
patch
|
blob
|
history
event/event.js
patch
|
blob
|
history
diff --git
a/ajax/ajax.js
b/ajax/ajax.js
index
6f289bb
..
be9c320
100644
(file)
--- a/
ajax/ajax.js
+++ b/
ajax/ajax.js
@@
-210,16
+210,17
@@
jQuery.extend({
// If an array was passed in, assume that it is an array
// of form elements
// If an array was passed in, assume that it is an array
// of form elements
- if ( a.constructor == Array )
+ if ( a.constructor == Array ) {
// Serialize the form elements
for ( var i = 0; i < a.length; i++ )
s.push( a[i].name + "=" + encodeURIComponent( a[i].value ) );
// Otherwise, assume that it's an object of key/value pairs
// Serialize the form elements
for ( var i = 0; i < a.length; i++ )
s.push( a[i].name + "=" + encodeURIComponent( a[i].value ) );
// Otherwise, assume that it's an object of key/value pairs
- else
+ } else {
// Serialize the key/values
for ( var j in a )
s.push( j + "=" + encodeURIComponent( a[j] ) );
// Serialize the key/values
for ( var j in a )
s.push( j + "=" + encodeURIComponent( a[j] ) );
+ }
// Return the resulting serialization
return s.join("&");
// Return the resulting serialization
return s.join("&");
diff --git
a/event/event.js
b/event/event.js
index
43d5d05
..
9432c08
100644
(file)
--- a/
event/event.js
+++ b/
event/event.js
@@
-1616,7
+1616,7
@@
new function(){
});
};
});
};
- }
+ };
// If Mozilla is used
if ( jQuery.browser.mozilla || jQuery.browser.opera ) {
// If Mozilla is used
if ( jQuery.browser.mozilla || jQuery.browser.opera ) {
@@
-1657,9
+1657,9
@@
new function(){
jQuery.ready();
}
}, 10);
jQuery.ready();
}
}, 10);
+ } else {
+ // A fallback to window.onload, that will always work
+ jQuery.event.add( window, "load", jQuery.ready );
}
}
- // A fallback to window.onload, that will always work
- jQuery.event.add( window, "load", jQuery.ready );
-
}
}