Skip to content

Commit 05f6bba

Browse files
committed
Merge branch 'master' into feature/remove-hook-system
# Conflicts: # public/jquery.selectric.min.js
2 parents 1eb5d12 + b543f21 commit 05f6bba

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
@@ -504,6 +504,10 @@
504504
var _this = this;
505505
var markup = '<ul>';
506506

507+
if ( $.isFunction(_this.options.listBuilder) && _this.options.listBuilder ) {
508+
items = _this.options.listBuilder(items);
509+
}
510+
507511
$.each(items, function(i, elm) {
508512
if ( elm.label !== undefined ) {
509513

@@ -1072,6 +1076,7 @@
10721076
allowWrap : true,
10731077
optionsItemBuilder : '{text}', // function(itemData, element, index)
10741078
labelBuilder : '{text}', // function(currItem)
1079+
listBuilder : false, // function(items)
10751080
keys : {
10761081
previous : [37, 38], // Left / Up
10771082
next : [39, 40], // Right / Down

0 commit comments

Comments
 (0)