Commit cd2f67af by David Baumgold

Clone the `attributes` object

So that modifications don't affect the model
parent 355162c7
......@@ -6,7 +6,7 @@ CMS.Views.SystemFeedback = Backbone.View.extend({
},
template: _.template($("#system-feedback-tpl").text()),
render: function() {
var attrs = this.model.attributes;
var attrs = $.extend({}, this.model.attributes);
if(attrs.type) {
attrs.modelType = attrs.type;
delete attrs.type;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment