git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
65b1081
)
$.eval bug ==> added ==> || ""
author
Gilles van den Hoven
<gilles0181@gmail.com>
Sat, 3 Jun 2006 13:49:25 +0000
(13:49 +0000)
committer
Gilles van den Hoven
<gilles0181@gmail.com>
Sat, 3 Jun 2006 13:49:25 +0000
(13:49 +0000)
ajax/ajax.js
patch
|
blob
|
history
diff --git
a/ajax/ajax.js
b/ajax/ajax.js
index
f5eab6c
..
ea189bc
100644
(file)
--- a/
ajax/ajax.js
+++ b/
ajax/ajax.js
@@
-124,7
+124,7
@@
$.fn.load = function(a,o,f) {
h = h.responseText;
self.html(h).find("script").each(function(){
try {
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);}
} 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(){
// 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 :)
});
// And call the callback handler :)