Skip to content
Permalink
Browse files
$.eval bug ==> added ==> || ""
  • Loading branch information
Gilles van den Hoven committed Jun 3, 2006
1 parent 65b1081 commit b52b19ac4a87f5c824b08be53ffbacc4b520711b
Showing 1 changed file with 2 additions and 2 deletions.
@@ -124,7 +124,7 @@ $.fn.load = function(a,o,f) {
h = h.responseText;
self.html(h).find("script").each(function(){
try {
$.eval( this.text || this.textContent || this.innerHTML );
$.eval( this.text || this.textContent || this.innerHTML || "");
} catch(e){}
});
if(f){f(h);}
@@ -215,7 +215,7 @@ $.fn.update = function(sURL, sMethod, aValues, fCallback) {

// Evaluate the scripts AFTER this (so you can allready modify the new HTML!)
el.html(sResult).find("script").each(function(){
try { $.eval( this.text || this.textContent || this.innerHTML ); } catch(e) { }
try { $.eval( this.text || this.textContent || this.innerHTML || "" ); } catch(e) { }
});

// And call the callback handler :)

0 comments on commit b52b19a

Please sign in to comment.