Merge pull request #849 from MITx/kimth/fix-html-js
Don't function call on null
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user