Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added postInitialize #65

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

added postInitialize #65

wants to merge 3 commits into from

Conversation

bhamblok
Copy link

Now you can use a "postInitialize"-function which will be triggered just AFTER all "initialize"-functions from parent -states and -collections have been triggerd.
This is necessary when you need to access some (non-binding) properties from a parent-State-object which needs to be altered first in it's own initialize function.

@bhamblok
Copy link
Author

Hi @latentflip and @pgilad. I created a new branch to be able to replace the previous commits. I also updated the readme-file so it is more clear why I would like to have this functionality added to ampersand. Feel free to ask more information.

Thanks

@pgilad
Copy link
Member

pgilad commented Jun 19, 2015

Hey - see my comments for AmpersandJS/ampersand-state#176 (comment) regarding this topic.

@jrmyio
Copy link

jrmyio commented Sep 25, 2015

Kind of in need for a function like this.

Let's say I want to do a calculation on a collection as soon as the collection is initialized or changes. Currently in initialize() the collection is not ready yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants