Skip to content
Permalink
Browse files
Added a fix for <script>s getting executed twice when .load()ed.
  • Loading branch information
jeresig committed Jan 10, 2007
1 parent bb35204 commit c69047213514549551f3f612968bc669561e17c5
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit c690472

Please sign in to comment.