Use safer variable names and update minified version.

This commit is contained in:
pfiller 2011-07-26 15:17:40 -04:00
parent d399196f52
commit cabd7eb618
4 changed files with 7 additions and 7 deletions

View file

@ -693,10 +693,10 @@
return string;
};
Chosen.prototype.generate_random_char = function() {
var char, chars, random;
var chars, newchar, rand;
chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZ";
random = Math.floor(Math.random() * chars.length);
return char = chars.substring(random, random + 1);
rand = Math.floor(Math.random() * chars.length);
return newchar = chars.substring(rand, rand + 1);
};
return Chosen;
})();

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -592,8 +592,8 @@ class Chosen
generate_random_char: ->
chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZ";
random = Math.floor(Math.random() * chars.length)
char = chars.substring random, random+1
rand = Math.floor(Math.random() * chars.length)
newchar = chars.substring rand, rand+1
get_side_border_padding = (elmt) ->
side_border_padding = elmt.outerWidth() - elmt.width()