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

Cannot advice an object instance #18

Open
anodynos opened this issue Feb 7, 2013 · 0 comments
Open

Cannot advice an object instance #18

anodynos opened this issue Feb 7, 2013 · 0 comments

Comments

@anodynos
Copy link

anodynos commented Feb 7, 2013

I would like to advice a single Object instance (that is perhaps created by a Function via new).
So if I have

class Blender
  doIt:->

this works fine

YADC(Blender).before(...)

but this doesn't

myBlender = new Blender()
YADC(myBlender).before(...)

I would like to advice ONLY the object at hand, and not the prototype. Is this too much to ask ?
My main pain is that my instance is extended after creation, with methods not known at the creator Function / class definition.

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