X-Git-Url: http://git.roojs.org/?p=app.Builder.js;a=blobdiff_plain;f=src%2FPalete%2FPalete.vala;h=0eca60566332c60f69d0bd6d85d1fc2a04c2110c;hp=bf2555637c685edcfbd8b0f8d5fe48e15b22958a;hb=75369c4bea550234782fbb84693dcad814a2c899;hpb=a07013f293957e32ea2a375d6ce0e79ea24032a9 diff --git a/src/Palete/Palete.vala b/src/Palete/Palete.vala index bf2555637..0eca60566 100644 --- a/src/Palete/Palete.vala +++ b/src/Palete/Palete.vala @@ -403,25 +403,24 @@ namespace Palete state.showCompileResult(err); return ret; } - ret.set(line, errmsg); // depricated - this is used by the editor currently -- but we are planning to switch from taht. + ret.set(line, errmsg); // depricated - this is used by the editor currently -- but we are planning to switch from that.. print("got errors\n"); return ret; } + // now syntax is OK.. try the - if (ptype == "file") { - return this.validateJavascriptCompression(code); - } - print("no errors\n"); - return ret; + + + if (ptype == "file") { + this.validateJavascriptCompression(code); } - ret.set(line, errmsg); - print("got errors\n"); + print("no errors\n"); return ret; } - public Gee.HashMap validateJavascriptCompression(string code) + public void validateJavascriptCompression(string code) { // this uses the roojspacker code to try and compress the code. // it should highlight errors before we actually push live the code.