diff options
author | John Resig <jeresig@gmail.com> | 2007-01-10 21:31:18 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2007-01-10 21:31:18 +0000 |
commit | c69047213514549551f3f612968bc669561e17c5 (patch) | |
tree | 3a78aa359ff9838adb34373c83bb249a994e20b1 /src | |
parent | bb3520432673f18c3e461cb319e4be6bf547f23d (diff) | |
download | jquery-c69047213514549551f3f612968bc669561e17c5.tar.gz jquery-c69047213514549551f3f612968bc669561e17c5.zip |
Added a fix for <script>s getting executed twice when .load()ed.
Diffstat (limited to 'src')
-rw-r--r-- | src/ajax/ajax.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ajax/ajax.js b/src/ajax/ajax.js index f87f56291..0c629b3b7 100644 --- 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 |