just curious if it would have a performance benefit, but I felt free to edit your codesample and remove the var self = this; declaration within the init() function and adjust the forEach() method to work with the right context
I’ve implemented such a functionality called Ember.Memento, though this mixin hasn’t got any love recently, so I am not sure if it’s working with latest Ember.js versions Just wanted to leave this here … https://github.com/pangratz/ember-memento :running:
@pangratz that looks awesome and much more fully featured! Will try it out
@lukemelia in our case we are using it to display different messages to the user based on their progress through the app. We track using a state property in the controller and using this mixin allows us to change a display message based on the combination of their current state and their previous state.