Skip to content

Commit

Permalink
fix deconstructors
Browse files Browse the repository at this point in the history
  • Loading branch information
bttf committed Aug 11, 2016
1 parent 450dedf commit 7644706
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions addon/mixins/scroll-operator.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export default Ember.Mixin.create({
*/
activate(...args) {
this._super(...args);

this._attachEvents();
},

Expand All @@ -17,6 +18,7 @@ export default Ember.Mixin.create({
*/
deactivate(...args) {
this._super(...args);

this._detachEvents();
},

Expand All @@ -26,7 +28,7 @@ export default Ember.Mixin.create({
* scrolling that may happen between now and setupController.
*/
beforeModel(...args) {
const { transition } = args;
const [ transition ] = args;

this._super(...args);

Expand All @@ -43,7 +45,7 @@ export default Ember.Mixin.create({
* now to resume watching scroll position.
*/
setupController(...args) {
const { controller } = args;
const [ controller ] = args;

this._super(...args);

Expand Down

0 comments on commit 7644706

Please sign in to comment.