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

Parent functions with bind #162

Open
paha77 opened this issue Apr 4, 2015 · 0 comments
Open

Parent functions with bind #162

paha77 opened this issue Apr 4, 2015 · 0 comments

Comments

@paha77
Copy link

paha77 commented Apr 4, 2015

Regarding my previous issue (#161) I'm asking if it is possible to access / call a core function from my bind object?

I'd like to "override" the core find() function

db.bind('tickets').bind({
    findTickets: function(params, cb) {
        this.find(params, function(err, result) {
        ...
        });
    }
});

Is it possible somehow to use find insead of findTickets and access the parent find function instead of this.find()?

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