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

Add methods for setting/getting order in which computes should be updated #11

Open
phillipskevin opened this issue May 23, 2017 · 1 comment
Assignees

Comments

@phillipskevin
Copy link
Contributor

phillipskevin commented May 23, 2017

The code from here should be abstracted into a canReflect API:

if(observable instanceof Observation) {
    observable.compute._primaryDepth = nodeList.nesting;
} else if(observable.computeInstance) {
    observable.computeInstance.setPrimaryDepth(nodeList.nesting);
} else if(observable.observation) {
    observable.observation.compute._primaryDepth = nodeList.nesting;
}

Maybe this should be called priority or orderNumber.

@justinbmeyer justinbmeyer self-assigned this Jun 28, 2017
@justinbmeyer
Copy link
Contributor

I like setPriority which will be a number from 0->Infinity where 0 is the highest priority.

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

No branches or pull requests

2 participants