Commit b52b19ac authored by Gilles van den Hoven's avatar Gilles van den Hoven

$.eval bug ==> added ==> || ""

parent 65b1081e
......@@ -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 :)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment