Skip to content

Commit

Permalink
typecheck on touchAction
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Batson committed Mar 17, 2018
1 parent 825e7e1 commit a42c932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/mixins/touch-action.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const defaults = config.EmberHammertime || {};

const FocusableInputTypes = ['button', 'submit', 'text', 'file'];
// Set this to `false` to not apply the styles automatically to elements with an `action`
const TouchActionOnAction = (typeof defaults.touchActionOnAction == 'undefined') ? true : defaults.touchActionOnAction;
const TouchActionOnAction = defaults.touchActionOnAction === undefined ? true : defaults.touchActionOnAction;
// Remove 'onclick' if you do not want the styles automatically applied to elements with an `onclick`
const TouchActionAttributes = defaults.touchActionAttributes || ['onclick'];
// Remove whichever element types you do not want automatically getting styles applied to them
Expand Down

0 comments on commit a42c932

Please sign in to comment.