Make options an optional parameter
This commit is contained in:
parent
90ca300921
commit
f9674e7db2
3 changed files with 3 additions and 3 deletions
|
@ -27,7 +27,7 @@
|
|||
});
|
||||
Chosen = (function() {
|
||||
function Chosen(elmn, options) {
|
||||
this.set_default_values(options);
|
||||
this.set_default_values(options || {});
|
||||
this.form_field = elmn;
|
||||
this.form_field_jq = $(this.form_field);
|
||||
this.is_multiple = this.form_field.multiple;
|
||||
|
|
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
|
@ -15,7 +15,7 @@ $.fn.extend({
|
|||
class Chosen
|
||||
|
||||
constructor: (elmn, options) ->
|
||||
this.set_default_values(options)
|
||||
this.set_default_values(options or {})
|
||||
|
||||
@form_field = elmn
|
||||
@form_field_jq = $ @form_field
|
||||
|
|
Loading…
Add table
Reference in a new issue