Merge pull request #849 from MITx/kimth/fix-html-js

Don't function call on null
This commit is contained in:
arjun810
2012-10-09 21:16:46 -07:00

View File

@@ -15,7 +15,7 @@ class @JavascriptLoader
placeholders = el.find(".script_placeholder")
if placeholders.length == 0
callback()
callback() if callback?
return
# TODO: Verify the execution order of multiple placeholders