ivaynberg/select2 — pull request #152 by jameswyse (2012-06-22 15:52:04+00:00)
Title: Support for MongoDB style '_id' fields.

I'm using node.js with Mongoose and MongoDB to serve up JSON for select2 and I ran in to a problem today where the `value` field of the hidden input was not being updated. This was because my object had no `id` key.

However mongoDB uses `_id` instead which is then used all over my app to reference objects. So rather than hacking my code and confusing things I've made a small change to select2.js for my needs which seems to fix the problem.

Up to you if you want to include this :)