Fix my js_loader patch
* still call the callback when skipping duplicate file. This updates the completed flags, and so the overall "we're done" callback fires properly.
This commit is contained in:
@@ -62,5 +62,9 @@ class @JavascriptLoader
|
||||
# Need to use the DOM elements directly or the scripts won't execute
|
||||
# properly.
|
||||
$('head')[0].appendChild(s)
|
||||
$(placeholder).remove()
|
||||
else
|
||||
# just call the completion callback directly, without reloading the file
|
||||
completionHandlerGenerator(index)()
|
||||
$(placeholder).remove()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user