Nicolas Cannasse 1 year ago
parent
commit
0c358db4ac
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hide/comp/ScriptEditor.hx

+ 1 - 1
hide/comp/ScriptEditor.hx

@@ -378,7 +378,7 @@ class ScriptEditor extends CodeEditor {
 	var checker : ScriptChecker;
 	var checkTypes : Bool;
 
-	public function new( script : String, ?checker : ScriptChecker, ?parent : Element, ?root : Element, ?lang ) {
+	public function new( script : String, ?checker : ScriptChecker, ?parent : Element, ?root : Element, ?lang = "javascript" ) {
 		super(script, lang, parent,root);
 		if( checker == null ) {
 			checker = new ScriptChecker(new hide.Config(),"");