Merge branch 'bonfire-redesign' of https://github.com/FreeCodeCamp/freecodecamp into bonfire-redesign

This commit is contained in:
Michael Q Larson
2015-01-25 21:16:57 -08:00

View File

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