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; return string;
}; };
Chosen.prototype.generate_random_char = function() { Chosen.prototype.generate_random_char = function() {
var char, chars, random; var chars, newchar, rand;
chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZ"; chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZ";
random = Math.floor(Math.random() * chars.length); rand = Math.floor(Math.random() * chars.length);
return char = chars.substring(random, random + 1); return newchar = chars.substring(rand, rand + 1);
}; };
return Chosen; 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: -> generate_random_char: ->
chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZ"; chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZ";
random = Math.floor(Math.random() * chars.length) rand = Math.floor(Math.random() * chars.length)
char = chars.substring random, random+1 newchar = chars.substring rand, rand+1
get_side_border_padding = (elmt) -> get_side_border_padding = (elmt) ->
side_border_padding = elmt.outerWidth() - elmt.width() side_border_padding = elmt.outerWidth() - elmt.width()