doofinder
Advanced tools
Comparing version 4.1.5 to 4.1.6
{ | ||
"name": "doofinder", | ||
"description": "Javascript Library for Doofinder Search API", | ||
"version": "4.1.5", | ||
"version": "4.1.6", | ||
"main": "dist/doofinder.js", | ||
@@ -6,0 +6,0 @@ "authors": [ |
@@ -11,3 +11,3 @@ (function() { | ||
module.exports = { | ||
version: "4.1.5", | ||
version: "4.1.6", | ||
Client: require("./client"), | ||
@@ -14,0 +14,0 @@ Mustache: require("mustache"), |
@@ -47,2 +47,3 @@ | ||
QueryInput.__super__.constructor.call(this, element); | ||
this.typingTimeout = this.options.typingTimeout || 1000; | ||
} | ||
@@ -77,3 +78,11 @@ | ||
}, this.options); | ||
return dfTypeWatch(this.element, options); | ||
dfTypeWatch(this.element, options); | ||
controller = this.controller[0]; | ||
return controller.bind('df:results_received', function(res) { | ||
return setTimeout((function() { | ||
if (controller.status.params.query_counter === res.query_counter && controller.status.currentPage === 1) { | ||
return self.trigger('df:typing_stopped'); | ||
} | ||
}), self.typingTimeout); | ||
}); | ||
}; | ||
@@ -80,0 +89,0 @@ |
{ | ||
"name": "doofinder", | ||
"version": "4.1.5", | ||
"version": "4.1.6", | ||
"description": "Javascript Library for Doofinder Search API", | ||
@@ -5,0 +5,0 @@ "main": "lib/doofinder.js", |
122757
2784