0 Likes

Eliminate Comments within the Variation Code

Status: New
by ‎05-26-2016 May 26, 2016

I found it slightly annoying when the variation code editor kept giving errors for short circuiting code. For example, in the following case:

 

x ? true : false;

Obviously not actual code, but something like a ternary would through an error. It'd be cool to be able to turn the JS hints on and off within Options. In the meantime, I am using the following workaround:

 

/*jshint ignore:start*/
	//A BUNCH OF CODE THAT'S THROWING ERRORS
  /*jshint ignore:end*/
Level 14