Permalink
Browse files

JS variales were leaking to global scope

  • Loading branch information...
1 parent 81e8588 commit a4568846fc4296458e7fb6040fe0eae0c6143b38 @fedemp fedemp committed with michaeltwofish Nov 25, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 installer/script.js
View
@@ -73,8 +73,8 @@ var installer = {
var installok = true;
// If admin passwords have been entered, check if they're the same
- pass1 = $('#adminpass1');
- pass2 = $('#adminpass2');
+ var pass1 = $('#adminpass1');
+ var pass2 = $('#adminpass2');
if ( pass1.val().length > 0 && pass2.val().length > 0 && pass1.val() == pass2.val() ) {
pass1.parents('.inputfield').removeClass('invalid').addClass('valid');

0 comments on commit a456884

Please sign in to comment.