Skip to content

Commit afc0fdd

Browse files
committed
Fix conflict
1 parent 818ba3c commit afc0fdd

File tree

4 files changed

+24
-1
lines changed

4 files changed

+24
-1
lines changed

public/jquery.selectric.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,10 @@
510510
var _this = this;
511511
var markup = '<ul>';
512512

513+
if ( $.isFunction(_this.options.listBuilder) && _this.options.listBuilder ) {
514+
items = _this.options.listBuilder(items);
515+
}
516+
513517
$.each(items, function(i, elm) {
514518
if ( elm.label !== undefined ) {
515519

@@ -1110,6 +1114,7 @@
11101114
allowWrap : true,
11111115
optionsItemBuilder : '{text}', // function(itemData, element, index)
11121116
labelBuilder : '{text}', // function(currItem)
1117+
listBuilder : false, // function(items)
11131118
keys : {
11141119
previous : [37, 38], // Left / Up
11151120
next : [39, 40], // Right / Down

0 commit comments

Comments
 (0)