Skip to content

Commit b50d1b0

Browse files
committed
Fixed non-working custom options parameter. Fixes #6
1 parent 6ecb382 commit b50d1b0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

dist/list.fuzzysearch.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -641,13 +641,13 @@ var classes = require('classes'),
641641
module.exports = function(options) {
642642
options = options || {};
643643

644-
extend(options, {
644+
extend({
645645
location: 0,
646646
distance: 100,
647647
threshold: 0.4,
648648
multiSearch: true,
649649
searchClass: 'fuzzy-search'
650-
});
650+
}, options);
651651

652652
var fuzzy = require('./src/fuzzy'),
653653
list;

dist/list.fuzzysearch.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ var classes = require('classes'),
77
module.exports = function(options) {
88
options = options || {};
99

10-
extend(options, {
10+
extend({
1111
location: 0,
1212
distance: 100,
1313
threshold: 0.4,
1414
multiSearch: true,
1515
searchClass: 'fuzzy-search'
16-
});
16+
}, options);
1717

1818
var fuzzy = require('./src/fuzzy'),
1919
list;

0 commit comments

Comments
 (0)