{"action":"created","issue":{"url":"https://api.github.com/repos/micktaiwan/meteor-vermongo/issues/6","labels_url":"https://api.github.com/repos/micktaiwan/meteor-vermongo/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/micktaiwan/meteor-vermongo/issues/6/comments","events_url":"https://api.github.com/repos/micktaiwan/meteor-vermongo/issues/6/events","html_url":"https://github.com/micktaiwan/meteor-vermongo/issues/6","id":108199411,"number":6,"title":"vermongo disables _.isEqual() (underscore)","user":{"login":"dpatte","id":10797271,"avatar_url":"https://avatars.githubusercontent.com/u/10797271?v=3","gravatar_id":"","url":"https://api.github.com/users/dpatte","html_url":"https://github.com/dpatte","followers_url":"https://api.github.com/users/dpatte/followers","following_url":"https://api.github.com/users/dpatte/following{/other_user}","gists_url":"https://api.github.com/users/dpatte/gists{/gist_id}","starred_url":"https://api.github.com/users/dpatte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpatte/subscriptions","organizations_url":"https://api.github.com/users/dpatte/orgs","repos_url":"https://api.github.com/users/dpatte/repos","events_url":"https://api.github.com/users/dpatte/events{/privacy}","received_events_url":"https://api.github.com/users/dpatte/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-24T19:39:50Z","updated_at":"2015-09-24T21:38:07Z","closed_at":"2015-09-24T21:38:07Z","body":"In my code immediately after doing a accountSchema.clean({$set:newFields},{isModifier:true}) and before doing a mongo insert I am doing a compare using _.isEqual(this,newFields).\r\n\r\nIt works fine without vermongo running attched to the collection, but fails to detect equality if vermongo is active. \r\n\r\nI suspect some action in vermongo is modifying the prototypes of newFields preventing equality?"},"comment":{"url":"https://api.github.com/repos/micktaiwan/meteor-vermongo/issues/comments/143057557","html_url":"https://github.com/micktaiwan/meteor-vermongo/issues/6#issuecomment-143057557","issue_url":"https://api.github.com/repos/micktaiwan/meteor-vermongo/issues/6","id":143057557,"user":{"login":"dpatte","id":10797271,"avatar_url":"https://avatars.githubusercontent.com/u/10797271?v=3","gravatar_id":"","url":"https://api.github.com/users/dpatte","html_url":"https://github.com/dpatte","followers_url":"https://api.github.com/users/dpatte/followers","following_url":"https://api.github.com/users/dpatte/following{/other_user}","gists_url":"https://api.github.com/users/dpatte/gists{/gist_id}","starred_url":"https://api.github.com/users/dpatte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpatte/subscriptions","organizations_url":"https://api.github.com/users/dpatte/orgs","repos_url":"https://api.github.com/users/dpatte/repos","events_url":"https://api.github.com/users/dpatte/events{/privacy}","received_events_url":"https://api.github.com/users/dpatte/received_events","type":"User","site_admin":false},"created_at":"2015-09-24T21:38:07Z","updated_at":"2015-09-24T21:38:07Z","body":"I notice now that vermongo added 'versions' to one of my objects. I have changed my code to test equality ignoring that field first."}}