Skip to content

Commit 70901a1

Browse files
committed
Fixes bug between two data-api phases.
1 parent 058c1a2 commit 70901a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build/jquery.checkboxes.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/jquery.checkboxes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
if (!data) {
9595
$this.data('checkboxes', (data = new Checkboxes($this, typeof method == 'object' && method)));
9696
}
97-
if (typeof method === 'string') {
97+
if (typeof method === 'string' && data[method]) {
9898
data[method].apply(data, methodArgs);
9999
}
100100
});

0 commit comments

Comments
 (0)