sajari-website
Advanced tools
Comparing version 0.5.7 to 0.5.8
{ | ||
"name": "sajari-website", | ||
"version": "0.5.7", | ||
"version": "0.5.8", | ||
"description": "Website extensions for the Sajari API. Automatically index site content, add user profiles, render search and recommendations, etc.", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -630,9 +630,2 @@ require("./utils/polyfills"); | ||
Search: function(keywords, success, failure, dynamicArgs) { | ||
if (ongoing.options.attrs.q !== undefined && keywords !== undefined) { | ||
if (keywords.substring(0, 2) != ongoing.options.attrs.q.substring(0, 2)) { | ||
this.resetSequence(); | ||
} | ||
} | ||
ongoing.sequence(); | ||
@@ -920,14 +913,5 @@ ongoing.attrs({ | ||
}, '/stats/click'); | ||
this.resetSequence(); | ||
}, | ||
/** | ||
* Reset an ongoing query sequence. Essentially wipes the query and starts over | ||
*/ | ||
resetSequence: function() { | ||
ongoing = new query(); | ||
log("reset query sequence..."); | ||
}, | ||
/** | ||
* Start a new query | ||
@@ -934,0 +918,0 @@ */ |
64262
1689