Skip to content

Commit c25d1e9

Browse files
committed
Merge branch 'master' of https://github.com/randylien/jquery-checkboxset into randylien-master
2 parents 6198cb5 + 3ba5bde commit c25d1e9

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

src/jquery.checkboxset.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,17 @@
1010
(function($) {
1111

1212
$.fn.checkboxset = function(options) {
13-
var defaults = {
13+
var settings = $.extend({
1414
tristate : true,
1515
data : {},
1616
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;
17+
}, options);
2118

2219
var config = {
2320
selector : $(this),
24-
tristate : options.tristate,
25-
data : options.data,
26-
change : options.change
21+
tristate : settings.tristate,
22+
data : settings.data,
23+
change : settings.change
2724
};
2825

2926
/**

0 commit comments

Comments
 (0)