amark / mongous

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

update mongous.prototype.find function to let the mongous to be used widely #28

Closed zjuwwq closed 11 years ago

zjuwwq commented 11 years ago

i instanceof Object is not a good way to check type. when i use mongous on node-webkit, the source code is running in window(web global context) , the Object is window.Object not global.Object(nodejs context), so check type is failed. so mongous can not be use in node-webkit. I fixed it.

amark commented 11 years ago

Oh my goodness, github has not been emailing me about issues. I only now noticed this and the other one! So sorry, I'll try and merge these in soon. Thank you so much!

amark commented 11 years ago

@zjuwwq, Made you a collaborator as well.