Skip to content

Commit 9824355

Browse files
author
ehynds
committed
the appendTo option should be a selector to a) prevent it from breaking, and b) match jQuery UI's API
1 parent 6aefeed commit 9824355

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/jquery.multiselect.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
autoOpen: false,
4242
multiple: true,
4343
position: {},
44-
appendTo: document.body
44+
appendTo: "body"
4545
},
4646

4747
_create: function() {
@@ -69,7 +69,7 @@
6969
menu = (this.menu = $('<div />'))
7070
.addClass('ui-multiselect-menu ui-widget ui-widget-content ui-corner-all')
7171
.addClass(o.classes)
72-
.appendTo(o.appendTo),
72+
.appendTo($(o.appendTo)),
7373

7474
header = (this.header = $('<div />'))
7575
.addClass('ui-widget-header ui-corner-all ui-multiselect-header ui-helper-clearfix')

0 commit comments

Comments
 (0)