kevinohara80 / nforce

nforce is a node.js salesforce REST API wrapper for force.com, database.com, and salesforce.com
MIT License
474 stars 167 forks source link

Fix bug preventing separate subscription callbacks on multiple stream subscriptions #53

Closed scottpersinger closed 10 years ago

scottpersinger commented 10 years ago

Lack of var token is letting what should be a local variable treated as a global so that subsequent subscriptions handlers clobber the initial ones. Fixes #53

scottpersinger commented 10 years ago

Haha, the most classic and insidious of Javascript bugs - missing 'var' label leading to a local var treated as a global.

kevinohara80 commented 10 years ago

Yup, this got hosed in the refactor. Thanks for catching this in the beta.

kevinohara80 commented 10 years ago

Released in v0.8.0-beta.5