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

Working decorator utility fn for wrapping jQuery? #24

Open
devinrhode2 opened this issue Nov 29, 2018 · 0 comments
Open

Working decorator utility fn for wrapping jQuery? #24

devinrhode2 opened this issue Nov 29, 2018 · 0 comments

Comments

@devinrhode2
Copy link

devinrhode2 commented Nov 29, 2018

I would love an all-in-one decorator utility function that I can use to wrap jQuery with. I've attempted to write such a utility in my own project devinrhode2/extendFunction.js, but this doesn't successfully wrap jQuery. One guess I have is that jQuery.prototype.init itself has a prototype that I need to also copy over into the decorated function. I have accomplished my goals via a hack, but what I'm seeking is the holy grail all in one decorator utility, which I can use to decorate any javascript function or class (or hybrid function+object+class Frankenstein that is jQuery)

(ps I found this project by searching lodash for "decorator" https://github.com/lodash/lodash/search?q=decorator&type=Issues)

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