Skip to content

Commit 6a39cfc

Browse files
committed
[Code style] Correct creating jQuery element.
1 parent 96979b6 commit 6a39cfc

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bootstrap-checkbox",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"authors": [
55
"vsn4ik"
66
],

dist/bootstrap-checkbox.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ if (typeof jQuery === 'undefined') {
1919

2020
this.options = $.extend({}, $.fn.checkboxpicker.defaults, options, this.$element.data());
2121

22-
// .btn-group-justified only works with <a> elements as the <button> doesn't pick up the styles
23-
this.$buttons = $('<a><a>').addClass('btn').click(this.clicked.bind(this));
22+
// .btn-group-justified works with <label> elements as the <button> doesn't pick up the styles
23+
this.$buttons = $('<label></label><label></label>').addClass('btn').click(this.clicked.bind(this));
2424

2525
this.$off = this.$buttons.eq(0).html(this.options.offLabel);
2626
this.$on = this.$buttons.eq(1).html(this.options.onLabel);
2727

28-
this.$group = $('<div class="btn-group">')
28+
this.$group = $('<div class="btn-group"></div>')
2929
.append(this.$buttons)
3030
.keydown(this.keydown.bind(this))
3131
.insertAfter(element);

dist/bootstrap-checkbox.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)