You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
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)
The text was updated successfully, but these errors were encountered: