From cc17db94648159d59990b6de9f132c439f5cd503 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Thu, 16 Jul 2020 10:20:28 +1000 Subject: [PATCH] dev/core#1090 Update extendedSerializeData to use the Backbone namespace to fix an issue with recent versions of elementor wordpress plugin --- js/view/crm.designer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/view/crm.designer.js b/js/view/crm.designer.js index b00a2964f1..58b0446ecb 100644 --- a/js/view/crm.designer.js +++ b/js/view/crm.designer.js @@ -2,7 +2,7 @@ if (!CRM.Designer) CRM.Designer = {}; /** - * When rendering a template with Marionette.ItemView, the list of variables is determined by + * When rendering a template with Backbone.Marionette.ItemView, the list of variables is determined by * serializeData(). The normal behavior is to map each property of this.model to a template * variable. * @@ -14,7 +14,7 @@ * @return {*} */ var extendedSerializeData = function() { - var result = Marionette.ItemView.prototype.serializeData.apply(this); + var result = Backbone.Marionette.ItemView.prototype.serializeData.apply(this); result._view = this; result._model = this.model; result._collection = this.collection; -- 2.25.1