vermongo disables _.isEqual() (underscore)
dpatte opened this issue · 1 comments
dpatte commented
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).
It works fine without vermongo running attched to the collection, but fails to detect equality if vermongo is active.
I suspect some action in vermongo is modifying the prototypes of newFields preventing equality?
dpatte commented
I notice now that vermongo added 'versions' to one of my objects. I have changed my code to test equality but ignoring that attribute.