Skip to content

Commit

Permalink
minor spacing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
snewcomer committed Feb 21, 2018
1 parent 9d00782 commit a785609
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions addon/mixins/in-viewport.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export default Mixin.create({
assert('sensitivity cannot be 0', sensitivity);

const contextEl = get(this, 'scrollableArea') || window;
let elem = findElem(contextEl);
const elem = findElem(contextEl);

elem.addEventListener('scroll', () => {
this._debouncedEventHandler('_triggerDidScrollDirection', elem, sensitivity);
Expand All @@ -232,9 +232,8 @@ export default Mixin.create({

_unbindScrollDirectionListener() {
const elementId = get(this, 'elementId');

const context = get(this, 'scrollableArea') || window;
let elem = findElem(context);
const elem = findElem(context);

elem.removeEventListener('scroll', () => {
this._debouncedEventHandler('_triggerDidScrollDirection', elem, get(this, 'viewportScrollSensitivity'));
Expand Down

0 comments on commit a785609

Please sign in to comment.