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

Fix restler.Request inheritance of EventEmitter for 0.10.x #118

Conversation

patricklodder
Copy link

Fixed, as previously proposed by others, inheritance of events.EventEmitter for restler.Request, this time with as little code changes as possible. I verified that test/all.js now passes against node 0.6.19, 0.8.23 and 0.10.4.

@armed
Copy link

armed commented May 4, 2013

+1, had to use @patricklodder's version for now.

@mortizbey
Copy link

Please pull this!! It is driving me crazy and I need this to be in the master so that NPM retrieves it when I execute the npm install restler command.

@abdielou
Copy link

abdielou commented May 6, 2013

+1. This is a must. Using @patricklodder branch for now.

@doodlemoonch
Copy link

+1. This fix has been around for ages now

@eric-wieser
Copy link

This fix is wrong

#113 is the correct fix to this problem.

Not only do you need to set up the prototype correctly, but you should always call the constructor of the superclass, as I do here!

@patricklodder
Copy link
Author

@eric-wieser You are right, I must have messed up a test on your pr because it passes now. closing this one

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

Successfully merging this pull request may close these issues.

6 participants