aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/RecipePreviewsStore.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/stores/RecipePreviewsStore.js')
-rw-r--r--src/stores/RecipePreviewsStore.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/stores/RecipePreviewsStore.js b/src/stores/RecipePreviewsStore.js
index 382820d58..a93aedfff 100644
--- a/src/stores/RecipePreviewsStore.js
+++ b/src/stores/RecipePreviewsStore.js
@@ -5,7 +5,6 @@ import ms from 'ms';
5import Store from './lib/Store'; 5import Store from './lib/Store';
6import CachedRequest from './lib/CachedRequest'; 6import CachedRequest from './lib/CachedRequest';
7import Request from './lib/Request'; 7import Request from './lib/Request';
8import { gaEvent } from '../lib/analytics';
9 8
10export default class RecipePreviewsStore extends Store { 9export default class RecipePreviewsStore extends Store {
11 @observable allRecipePreviewsRequest = new CachedRequest(this.api.recipePreviews, 'all'); 10 @observable allRecipePreviewsRequest = new CachedRequest(this.api.recipePreviews, 'all');
@@ -41,13 +40,6 @@ export default class RecipePreviewsStore extends Store {
41 @action _search({ needle }) { 40 @action _search({ needle }) {
42 if (needle !== '') { 41 if (needle !== '') {
43 this.searchRecipePreviewsRequest.execute(needle); 42 this.searchRecipePreviewsRequest.execute(needle);
44
45 this._analyticsSearch(needle);
46 } 43 }
47 } 44 }
48
49 // Helper
50 _analyticsSearch = debounce((needle) => {
51 gaEvent('Recipe', 'search', needle);
52 }, ms('3s'));
53} 45}