Commit 671a90c0 authored by Alex Beregszaszi's avatar Alex Beregszaszi

Remove obsolete external function setCompileJSON

parent 5811ac8f
...@@ -63,11 +63,6 @@ function Compiler (editor, handleGithubCall, outputField, hidingRHP, updateFiles ...@@ -63,11 +63,6 @@ function Compiler (editor, handleGithubCall, outputField, hidingRHP, updateFiles
editor.setAnnotations(sourceAnnotations); editor.setAnnotations(sourceAnnotations);
}; };
function setCompileJSON () {
compileJSON = function(source, optimize) { compilationFinished('{}'); };
};
this.setCompileJSON = setCompileJSON;
function onCompilerLoaded (setVersionText) { function onCompilerLoaded (setVersionText) {
if (worker === null) { if (worker === null) {
var compile; var compile;
...@@ -139,7 +134,9 @@ function Compiler (editor, handleGithubCall, outputField, hidingRHP, updateFiles ...@@ -139,7 +134,9 @@ function Compiler (editor, handleGithubCall, outputField, hidingRHP, updateFiles
this.loadVersion = function (version, setVersionText) { this.loadVersion = function (version, setVersionText) {
Module = null; Module = null;
setCompileJSON(); // Set a safe fallback until the new one is loaded
compileJSON = function(source, optimize) { compilationFinished('{}'); };
var newScript = document.createElement('script'); var newScript = document.createElement('script');
newScript.type = 'text/javascript'; newScript.type = 'text/javascript';
newScript.src = url; newScript.src = url;
......
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