Skip to content

Commit

Permalink
Avoid using of arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeancroy committed Jan 8, 2018
1 parent 6407ec8 commit 3d6f3e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/FuzzySearch.js
Expand Up @@ -1698,7 +1698,7 @@ extend(FuzzySearch.prototype, /** @lends {FuzzySearch.prototype} */ {
add: function(source_item, should_update_source){

// Default to keeping source in sync.
if(arguments.length < 2)
if(should_update_source === undefined)
should_update_source = true;

var item_id = typeof this.options.identify_item === "function"
Expand Down

0 comments on commit 3d6f3e5

Please sign in to comment.