Skip to content

Commit

Permalink
version bump and minified version update
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiodlopes committed Mar 24, 2018
1 parent bdd3913 commit e042648
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions jquery.flexdatalist.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ jQuery.fn.flexdatalist = function (_option, _value) {
window.onresize = function (event) {
_this.position();
};

// Run garbage collector
this.cache.gc();

Expand Down Expand Up @@ -308,7 +308,7 @@ jQuery.fn.flexdatalist = function (_option, _value) {
inputWidth: function (event) {
var options = _this.options.get();
if (options.multiple) {
var keyword = $alias.val(),
var keyword = $alias.val(),
fontSize = parseInt($alias.css('fontSize').replace('px', '')),
minWidth = 40,
maxWidth = $this.innerWidth(),
Expand Down Expand Up @@ -337,7 +337,7 @@ jQuery.fn.flexdatalist = function (_option, _value) {
var val = _this.fvalue.get(),
keyword = $alias.val(),
options = _this.options.get();

if (!options.multiple && options.selectionRequired && keyword.length <= options.minLength) {
_this.fvalue.clear();
}
Expand Down Expand Up @@ -373,7 +373,7 @@ jQuery.fn.flexdatalist = function (_option, _value) {
if ($this.attr('autofocus')) {
$alias.focus();
}

$this.data('aliascontainer', ($multiple ? $multiple : $alias)).addClass('flexdatalist flexdatalist-set').css({
'position': 'absolute',
'top': -14000,
Expand Down Expand Up @@ -424,7 +424,7 @@ jQuery.fn.flexdatalist = function (_option, _value) {
.addClass('flexdatalist-multiple-value')
.append($alias)
.appendTo($multiple);

return $multiple;
},
/**
Expand Down Expand Up @@ -686,7 +686,7 @@ jQuery.fn.flexdatalist = function (_option, _value) {
args = [{value: data.value, text: data.text, action: action}, options];

$this.trigger('before:flexdatalist.toggle', args);

if (action === 'enable') {
var value = $li.data('value');
current.splice(index, 0, value);
Expand Down Expand Up @@ -1410,10 +1410,10 @@ jQuery.fn.flexdatalist = function (_option, _value) {
var $li = $('<li>').data('item', item).addClass('item'),
options = _this.options.get(),
visibleProperties = options.visibleProperties;

for (var index = 0; index < visibleProperties.length; index++) {
var visibleProperty = visibleProperties[index];

if (visibleProperty.indexOf('{') > -1) {
var str = _this.fvalue.placeholders.replace(item, visibleProperty),
parsed = _this.fvalue.placeholders.parse(visibleProperty);
Expand All @@ -1438,7 +1438,7 @@ jQuery.fn.flexdatalist = function (_option, _value) {
.html(propertyText + ' ');
}
}

$item.appendTo($li);
}
return $li;
Expand Down
Loading

0 comments on commit e042648

Please sign in to comment.