Commits

Anton Shestakov committed 88f00d6

Make default itemFn use text instead of value.

Comments (0)

Files changed (1)

         widgetClass: 'lensy-widget',
         itemClass: 'lensy-item',
         itemActiveClass: 'active',
-        itemFn: function(value) { return $('<span>').text(value); },
+        itemFn: function(value, text) { return $('<span>').text(text); },
         widgetItemFn: undefined,
         filterFn: function(filterString, value) { return value.toLowerCase().indexOf(filterString.toLowerCase()) != -1; }
     };