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
(parent:
bb35204
)
Added a fix for <script>s getting executed twice when .load()ed.
author
John Resig
<jeresig@gmail.com>
Wed, 10 Jan 2007 21:31:18 +0000
(21:31 +0000)
committer
John Resig
<jeresig@gmail.com>
Wed, 10 Jan 2007 21:31:18 +0000
(21:31 +0000)
src/ajax/ajax.js
patch
|
blob
|
history
diff --git
a/src/ajax/ajax.js
b/src/ajax/ajax.js
index
f87f562
..
0c629b3
100644
(file)
--- a/
src/ajax/ajax.js
+++ b/
src/ajax/ajax.js
@@
-77,7
+77,7
@@
jQuery.fn.extend({
complete: function(res, status){
if ( status == "success" || !ifModified && status == "notmodified" )
// Inject the HTML into all the matched elements
- self.html(res.responseText)
+ self.attr("innerHTML", res.responseText)
// Execute all the scripts inside of the newly-injected HTML
.evalScripts()
// Execute callback