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

Allowing others to make new projections #20

Open
sunesimonsen opened this issue May 30, 2014 · 1 comment
Open

Allowing others to make new projections #20

sunesimonsen opened this issue May 30, 2014 · 1 comment

Comments

@sunesimonsen
Copy link

It would be very nice if I were able to provide new projections without forking your project. The only thing that is holding me back from doing this, is that I want my projections to be chainable with the existing projections. Right now there is a global cache of projections that is used to add the methods to the returned projection:

ko[projectionFunctionsCacheName] = {
    map: ...
    filter: ...
};

It would be nice if this cache was public - maybe use ko.projections for the cache instead of saving the exclusion marker there. It would also be required that the projection cache is not overwritten if it already exist.

ko.projections = ko.extend(ko.projections || {}, {
    map: ...
    filter: ...
});
@sunesimonsen
Copy link
Author

@SteveSanderson: It is a bit of time since I posted this issue, I know you are extremely busy with the great work you doing on Knockout, but I would be greatly appreciated if you could give your feedback on this issue. Otherwise we will probably continue our fork in a direction that is not compatible with the upstream repository, and that would be a bit sad.

Kind regards
Sune

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

1 participant