diff --git a/.jshintrc b/.jshintrc index 08096ef..57ae299 100644 --- a/.jshintrc +++ b/.jshintrc @@ -2,7 +2,8 @@ "predef": [ "document", "window", - "-Promise" + "-Promise", + "Hammer" ], "browser": true, "boss": true, diff --git a/addon/mixins/recognizers.js b/addon/mixins/recognizers.js index 8df7572..3c77262 100644 --- a/addon/mixins/recognizers.js +++ b/addon/mixins/recognizers.js @@ -1,4 +1,3 @@ -/* global Hammer */ import Ember from 'ember'; const { diff --git a/addon/recognizers/pan.js b/addon/recognizers/pan.js index c8a0681..c9fe5b0 100644 --- a/addon/recognizers/pan.js +++ b/addon/recognizers/pan.js @@ -1,6 +1,6 @@ export default { include: [], exclude: [], - options: {}, + options: { direction: Hammer.DIRECTION_HORIZONTAL }, recognizer: 'pan' }; diff --git a/addon/recognizers/vertical-pan.js b/addon/recognizers/vertical-pan.js index 012f56a..f59f365 100644 --- a/addon/recognizers/vertical-pan.js +++ b/addon/recognizers/vertical-pan.js @@ -1,5 +1,3 @@ -/* global Hammer */ - export default { include: [], exclude: [], diff --git a/addon/recognizers/vertical-swipe.js b/addon/recognizers/vertical-swipe.js index fe1a9c7..3fe9695 100644 --- a/addon/recognizers/vertical-swipe.js +++ b/addon/recognizers/vertical-swipe.js @@ -1,4 +1,3 @@ -/*global Hammer*/ export default { include: [], exclude: [], diff --git a/addon/services/-gestures.js b/addon/services/-gestures.js index beb5a0c..2cc1b13 100644 --- a/addon/services/-gestures.js +++ b/addon/services/-gestures.js @@ -1,4 +1,3 @@ -/* global Hammer */ import Ember from 'ember'; import camelize from 'ember-allpurpose/string/dasherized-to-camel'; import capitalize from 'ember-allpurpose/string/capitalize-word';