Fixing playground for to not include a null symbol

This commit is contained in:
Nathan Leniz
2015-01-26 00:15:46 -05:00
parent 26c041826b
commit f8eb5971b8

View File

@ -108,7 +108,9 @@ function bonfireExecute() {
userJavaScript = removeComments(userJavaScript);
userJavaScript = scrapeTests(userJavaScript);
// simple fix in case the user forgets to invoke their function
userJavaScript = challengeEntryPoint + ' ' + userJavaScript;
if (challengeEntryPoint) {
userJavaScript = challengeEntryPoint + ' ' + userJavaScript;
}
submit(userJavaScript, function(cls, message) {
if (cls) {
codeOutput.setValue(message.error);