We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6198cb5 + 3ba5bde commit c25d1e9Copy full SHA for c25d1e9
src/jquery.checkboxset.js
@@ -10,20 +10,17 @@
10
(function($) {
11
12
$.fn.checkboxset = function(options) {
13
- var defaults = {
+ var settings = $.extend({
14
tristate : true,
15
data : {},
16
change : function(name) { }
17
- };
18
- options.tristate = isset(options.tristate) ? options.tristate : defaults.tristate;
19
- options.data = options.data || defaults.data;
20
- options.change = options.change || defaults.change;
+ }, options);
21
22
var config = {
23
selector : $(this),
24
- tristate : options.tristate,
25
- data : options.data,
26
- change : options.change
+ tristate : settings.tristate,
+ data : settings.data,
+ change : settings.change
27
};
28
29
/**
0 commit comments