Skip to content

Commit

Permalink
Merge branch 'release/2.0.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
poteto committed Dec 4, 2015
2 parents b4115db + bc27679 commit 3c0e348
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion addon/mixins/in-viewport.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ export default Mixin.create({
triggeredEventName = 'didExitViewport';
}

set(this, 'viewportEntered', hasEnteredViewport);
if (get(this, 'viewportSpy') || !viewportEntered) {
set(this, 'viewportEntered', hasEnteredViewport);
}

this.trigger(triggeredEventName);
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-in-viewport",
"version": "2.0.2",
"version": "2.0.3",
"description": "Detect if an Ember View or Component is in the viewport @ 60FPS",
"directories": {
"doc": "doc",
Expand Down

0 comments on commit 3c0e348

Please sign in to comment.