Closed dwiyatci closed 8 years ago
Why would you want to prevent this from happening? This is expected behavior. This is the canonical way to override delegate prototype methods...
I guess you're right. This behaviour should be expected. I think I got mixed up a bit between concatenative and delegative prototyping. Thanks for the justification.
Hello,
this morning I accidentally override (or rather, hide?) one of my instance methods when passing
properties
to the factory function. It goes something like:I know the
greet
method in the prototype will be safe, but just wondering if there is any way to prevent this kinda thing from happening?