Cleaned up code.

This commit is contained in:
Alexander Kastius
2016-08-12 13:22:52 +02:00
parent 842a38c13a
commit fbb1cfb67b
6 changed files with 63 additions and 91 deletions

View File

@@ -1,15 +1,16 @@
$(function() {
//Merge all editor components. OOP for the win. O rly.
//TODO CHange this. Otherwise it will fuck people up,
//TODO Change this. Otherwise it will fuck people up,
//because it's really confusing if the variables and the code are
//split over 6 files.
$.extend(CodeOceanEditor, CodeOceanEditorAJAX);
$.extend(CodeOceanEditor, CodeOceanEditorEvaluation);
$.extend(CodeOceanEditor, CodeOceanEditorFlowr);
$.extend(CodeOceanEditor, CodeOceanEditorSubmissions);
$.extend(CodeOceanEditor, CodeOceanEditorTurtle);
$.extend(CodeOceanEditor, CodeOceanEditorWebsocket);
$.extend(CodeOceanEditor,
CodeOceanEditorAJAX,
CodeOceanEditorEvaluation,
CodeOceanEditorFlowr,
CodeOceanEditorSubmissions,
CodeOceanEditorTurtle,
CodeOceanEditorWebsocket);
if ($('#editor').isPresent() && CodeOceanEditor) {
if (CodeOceanEditor.isBrowserSupported()) {