Modifying inherit function to extend on class properties that are objects instead of overwriting

When extending a Backbone View or Model declared with "events" or "defaults", the inherited object has to copy the attributes of the parent in order to keep them. This changes proposes automatically mixing the object properties between parent and inherited classes.