Skip to content

Commit

Permalink
[marcojetson#2] switched out falsy check with hasOwnProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
therebelrobot committed Aug 31, 2015
1 parent 915a490 commit f1364fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/type-ahead.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ var TypeAhead = function (element, candidates, opts) {

typeAhead.list = new TypeAheadList(typeAhead);

this.minLength = opts.minLength || 3;
this.minLength = opts.hasOwnProperty('minLength') || 3;

typeAhead.limit = opts.limit || 5;
typeAhead.limit = opts.hasOwnProperty('limit') || 5;

typeAhead.query = '';

Expand Down

0 comments on commit f1364fb

Please sign in to comment.