Commit d30d8c92 by Victor Shnayder

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.
parent 03325b45
......@@ -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()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment