git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed missing typo
[jquery.git]
/
src
/
jquery
/
jquery.js
diff --git
a/src/jquery/jquery.js
b/src/jquery/jquery.js
index
71485b0
..
f942bf4
100644
(file)
--- a/
src/jquery/jquery.js
+++ b/
src/jquery/jquery.js
@@
-548,7
+548,7
@@
jQuery.fn = jQuery.prototype = {
"textContent" : "innerText";
return e == undefined ?
"textContent" : "innerText";
return e == undefined ?
- this.length && this[0][ type ] :
+ jQuery.map(this, function(a){ return a[ type ]; }).join('') :
this.each(function(){ this[ type ] = e; });
},
this.each(function(){ this[ type ] = e; });
},
@@
-1254,7
+1254,7
@@
jQuery.extend({
prop: function(elem, value, type){
// Handle executable functions
if ( value.constructor == Function )
prop: function(elem, value, type){
// Handle executable functions
if ( value.constructor == Function )
- return value.call( elem )
+ return value.call( elem );
// Handle passing in a number to a CSS property
if ( value.constructor == Number && type == "css" )
// Handle passing in a number to a CSS property
if ( value.constructor == Number && type == "css" )
@@
-1383,7
+1383,7
@@
jQuery.extend({
clean: function(a) {
var r = [];
clean: function(a) {
var r = [];
-
+
for ( var i = 0, al = a.length; i < al; i++ ) {
var arg = a[i];
for ( var i = 0, al = a.length; i < al; i++ ) {
var arg = a[i];
@@
-1436,7
+1436,7
@@
jQuery.extend({
arg = div.childNodes;
}
arg = div.childNodes;
}
- if ( arg.nodeType )
+ if ( arg[0] == undefined )
r.push( arg );
else
r = jQuery.merge( r, arg );
r.push( arg );
else
r = jQuery.merge( r, arg );