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

Built in filter modifier on ModelRequest #40

Closed
Dashron opened this issue Aug 13, 2012 · 1 comment
Closed

Built in filter modifier on ModelRequest #40

Dashron opened this issue Aug 13, 2012 · 1 comment

Comments

@Dashron
Copy link
Owner

Dashron commented Aug 13, 2012

Should be kind of like preload, where it adds a modifier, but provides a simpler interface for a common task.
This one should take a function which is called once for each model, and if true is returned it will be in the final ready array.

user_request = UserModel.getAll();

user_request.filter(function (model) {
    return model.name === "Aaron";
});

user_request.ready(function (models) {
    // these will all be named aaron
});
@Dashron
Copy link
Owner Author

Dashron commented May 26, 2013

models moved into their own project

@Dashron Dashron closed this as completed May 26, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant