Make options an optional parameter
parent
90ca300921
commit
f9674e7db2
|
@ -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;
|
||||
|
|
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…
Reference in New Issue