Export to GitHub

css3-mediaqueries-js - issue #5

JSHint or JSLint the code please


Posted on May 21, 2011 by Massive Ox

I placed the code into JSHint and came across a few issues but the worse two are variables being initialised out of scope (within blocks) and one case of a line breaking off 3 different if conditions BEFORE && instead of after. The latter issue is worrying only because we can't predict the interpreter in that case, where it might insert a ; instead of a \n.

I have attached a patch of my changes. The code now validates with JSHint (www.jshint.com) with these options checked ONLY: - Require curly braces around all blocks - Stop on the first error - Require variables to be declared before usage - Browser

Attachments

Comment #1

Posted on Apr 4, 2014 by Happy Ox

Back from the dead... There is a new version of the script. It has some CSS parsing and processing improvements. If you're still using it, or would like to try again, could you confirm that this issue is solved or not?

Status: New

Labels:
Type-Defect Priority-Medium