Skip to content

Commit

Permalink
Guard against viewportListeners being undefined
Browse files Browse the repository at this point in the history
Closes #45
  • Loading branch information
elidupuis committed Feb 18, 2016
1 parent d86077d commit 9503380
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addon/mixins/in-viewport.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ export default Mixin.create({
this._super(...arguments);
const options = merge({
viewportUseRAF: canUseRAF(),
viewportEntered: false
viewportEntered: false,
viewportListeners: []
}, this._buildOptions());

setProperties(this, options);
Expand Down

0 comments on commit 9503380

Please sign in to comment.