--- a/jquery.lensy.js Wed May 15 18:12:07 2013 +0900
+++ b/jquery.lensy.js Thu May 16 14:13:16 2013 +0900
.addClass(this.settings.itemClass)
.attr('data-original-value', value)
.attr('data-original-text', text)
- .html(this.settings.itemFn(value, text));
+ .data('$option', $option)
+ .html(this.settings.itemFn(value, text, $option));
createWidgetItem: function($item) {
var value = $item.attr('data-original-value');
var text = $item.attr('data-original-text');
+ var $option = $item.data('$option');
.addClass(this.settings.itemClass)
- .html((this.settings.widgetItemFn || this.settings.itemFn)(value, text));
+ .html((this.settings.widgetItemFn || this.settings.itemFn)(value, text, $option));