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 (from parent 1:
2f2602e
)
jquery core: closes #3053. clean() wasn't parsing 0's. So html( 0 ) was failing failing.
author
Ariel Flesler
<aflesler@gmail.com>
Tue, 17 Jun 2008 19:57:42 +0000
(19:57 +0000)
committer
Ariel Flesler
<aflesler@gmail.com>
Tue, 17 Jun 2008 19:57:42 +0000
(19:57 +0000)
src/core.js
patch
|
blob
|
history
diff --git
a/src/core.js
b/src/core.js
index
c90f58d
..
924bf96
100644
(file)
--- a/
src/core.js
+++ b/
src/core.js
@@
-943,12
+943,12
@@
jQuery.extend({
context = context.ownerDocument || context[0] && context[0].ownerDocument || document;
jQuery.each(elems, function(i, elem){
context = context.ownerDocument || context[0] && context[0].ownerDocument || document;
jQuery.each(elems, function(i, elem){
+ if ( typeof elem == 'number' )
+ elem += '';
+
if ( !elem )
return;
if ( !elem )
return;
- if ( elem.constructor == Number )
- elem += '';
-
// Convert html string into DOM nodes
if ( typeof elem == "string" ) {
// Fix "XHTML"-style tags in all browsers
// Convert html string into DOM nodes
if ( typeof elem == "string" ) {
// Fix "XHTML"-style tags in all browsers
@@
-1368,4
+1368,4
@@
jQuery.each([ "Height", "Width" ], function(i, name){
// Helper function used by the dimensions and offset modules
function num(elem, prop) {
return elem[0] && parseInt( jQuery.curCSS(elem[0], prop, true), 10 ) || 0;
// Helper function used by the dimensions and offset modules
function num(elem, prop) {
return elem[0] && parseInt( jQuery.curCSS(elem[0], prop, true), 10 ) || 0;
-}
\ No newline at end of file
+}