amark / mongous

Simple MongoDB driver for Node.js with jQuery like syntax.
MIT License
246 stars 30 forks source link

refactor con.r function #25

Closed acsaga closed 12 years ago

acsaga commented 12 years ago

I found when connecting to mongodb, if som < res.length, the connection will fail. I'm not sure why this happen, but it did happen on my computer. (It seems sometimes mongodb returns useless data in response?)

so I combine the logic about (som < res.length) and (som == res.length) to fix that case.

amark commented 12 years ago

Yeah, sorry I had corrected this locally but apparently forgot to push it out. Thanks for the catch (I'm not the best with git, if you haven't figured that out already, lol). I appreciate it. :)