Check whether id is valid when adding to weak map.
authorCheng Zhao <zcbenz@gmail.com>
Sat, 4 May 2013 14:57:17 +0000 (22:57 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Sat, 4 May 2013 14:57:17 +0000 (22:57 +0800)
commite7547363e2d3d776ef8eef9b2c0800c4a80fcdb0
treecd51795fa29bf1288803bb35b8c4c76fee3e77f6
parent84dc221b2e03cf92e8ce091c5ed6201e85e372b7
Check whether id is valid when adding to weak map.

It's possible that the object has been added to weak map before and then
erased, so having an id property doesn't mean it's added in the weak map.
browser/atom/objects_registry.coffee