Use safer variable names and update minified version.
This commit is contained in:
parent
d399196f52
commit
cabd7eb618
|
@ -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;
|
||||||
})();
|
})();
|
||||||
|
|
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: ->
|
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()
|
||||||
|
|
Loading…
Reference in a new issue