designmodo / startup-demo

Demo Version of Startup Framework
http://designmodo.com/startup/
1.26k stars 288 forks source link

Fixed possible issues with your js. #17

Open Aristona opened 10 years ago

Aristona commented 10 years ago

I used JSLint on your JS to fix potential issues.

  1. Cleaned trailing whitespaces.
  2. Removed unnecessary semicolons.
  3. Added necessary semicolons.
  4. 0 value should be checked using === or !==
  5. Fixed a possible bug where same variable was being declared thrice.