mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Added a fix for <script>s getting executed twice when .load()ed.
This commit is contained in:
parent
bb35204326
commit
c690472135
@ -77,7 +77,7 @@ jQuery.fn.extend({
|
|||||||
complete: function(res, status){
|
complete: function(res, status){
|
||||||
if ( status == "success" || !ifModified && status == "notmodified" )
|
if ( status == "success" || !ifModified && status == "notmodified" )
|
||||||
// Inject the HTML into all the matched elements
|
// 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
|
// Execute all the scripts inside of the newly-injected HTML
|
||||||
.evalScripts()
|
.evalScripts()
|
||||||
// Execute callback
|
// Execute callback
|
||||||
|
Loading…
Reference in New Issue
Block a user