Use safer variable names and update minified version.
This commit is contained in:
parent
d399196f52
commit
cabd7eb618
|
@ -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;
|
||||
})();
|
||||
|
|
2
chosen/chosen.jquery.min.js
vendored
2
chosen/chosen.jquery.min.js
vendored
File diff suppressed because one or more lines are too long
2
chosen/chosen.proto.min.js
vendored
2
chosen/chosen.proto.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue