Skip to content

Commit

Permalink
damn...
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiodlopes committed Jul 6, 2017
1 parent 8d27a74 commit fe18e58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion jquery.flexdatalist.js
Original file line number Diff line number Diff line change
Expand Up @@ -742,11 +742,12 @@ jQuery.fn.flexdatalist = function (_option, _value) {
*/
toObj: function (val) {
if (typeof val !== 'object') {
var options = _this.options.get();
if (this.isCSV()) {
if (_this.isEmpty(val) || !_this.isDefined(val)) {
val = [];
} else {
val = val.toString().split(_this.options.get('valuesSeparator'));
val = val.toString().split(options.valuesSeparator);
val = $.map(val, function (v) {
return $.trim(v);
});
Expand Down
Loading

0 comments on commit fe18e58

Please sign in to comment.