X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjquery%2Fjquery.js;h=8e370f8ed8ca6fd0ecca6bff00327bc836a54d6b;hb=42f30dd1812fc0ee262eaa43f0a354d8e439938c;hp=57685b31d538361db1f79ba1e3bf40c2ef3087e9;hpb=78db847ef201a66f88e9ad330b2e51c65c58abb3;p=jquery.git diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 57685b3..8e370f8 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -565,7 +565,7 @@ jQuery.fn = jQuery.prototype = { * @cat DOM/Attributes */ text: function(e) { - if ( typeof e == "string" ) + if ( typeof e != "object" && e != null ) return this.empty().append( document.createTextNode( e ) ); var t = "";