You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think #4024 is a working solution to this, but I'm not entirely sure.
Example:
let model = new Backbone.Model({ foo: 'bar', baz: 'qux' });
model.omit('foo') // returns { baz: 'qux' }
As a proxied underscore method, I can understand the default behavior. It seems like in the context of a backbone model though, it should somehow return the model with the omitted fields by default?
Other than by overriding the method chain, possibly supering or calling another util/_ method to have the intended effect, or by instantiating a new model, I'm not sure what the most ideal solution to this would be and whether or not the entity context should be accounted for by default.
The text was updated successfully, but these errors were encountered:
I think #4024 is a working solution to this, but I'm not entirely sure.
Example:
As a proxied underscore method, I can understand the default behavior. It seems like in the context of a backbone model though, it should somehow return the model with the omitted fields by default?
Other than by overriding the method chain, possibly supering or calling another util/_ method to have the intended effect, or by instantiating a new model, I'm not sure what the most ideal solution to this would be and whether or not the entity context should be accounted for by default.
The text was updated successfully, but these errors were encountered: