Skip to content

Commit

Permalink
Remove _hasRendered property
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlafroscia committed Mar 31, 2018
1 parent 10eec9a commit 7f9b66d
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions addon/components/step-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const layout = hbs`
transition-to-next=(action 'transition-to-next')
transition-to-previous=(action 'transition-to-previous')
currentStep=transitions.currentStep
steps=(if _hasRendered transitions.stepArray)
steps=transitions.stepArray
)}}
`;

Expand Down Expand Up @@ -86,16 +86,6 @@ export default Component.extend({
*/
transitions: null,

/**
* Whether the initial render cycle has completed
*
* Used to prevent a double-render-cycle when yielding an array of steps
*
* @property {boolean} _hasRendered
* @private
*/
_hasRendered: false,

hasNextStep: computed('transitions.{currentStep,length}', function() {
return isPresent(get(this, 'transitions').pickNext());
}),
Expand Down Expand Up @@ -160,12 +150,6 @@ export default Component.extend({
this._super(...arguments);
},

didInsertElement() {
this._super(...arguments);

set(this, '_hasRendered', true);
},

actions: {
/**
* Register a step with the manager
Expand Down

0 comments on commit 7f9b66d

Please sign in to comment.