From cd2f67afa408e34cfcb459e86aead71e534dc584 Mon Sep 17 00:00:00 2001 From: David Baumgold Date: Thu, 9 May 2013 13:50:07 -0400 Subject: [PATCH] Clone the `attributes` object So that modifications don't affect the model --- cms/static/js/views/feedback.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cms/static/js/views/feedback.js b/cms/static/js/views/feedback.js index e1c1344f6b..a2f80c94aa 100644 --- a/cms/static/js/views/feedback.js +++ b/cms/static/js/views/feedback.js @@ -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;