Fixed missing typo
[jquery.git] / src / jquery / jquery.js
index dbec38f..f942bf4 100644 (file)
@@ -548,7 +548,7 @@ jQuery.fn = jQuery.prototype = {
                        "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; });
        },
 
@@ -1254,7 +1254,7 @@ jQuery.extend({
        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" )