From 1613643307c8ae42d9c4578a27d6db3950017ab5 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Sat, 1 Jun 2013 10:38:21 -0700 Subject: [PATCH] fixed autobinder on re-render --- UI/Mixins/backbone.marionette.templates.js | 3 ++- UI/Mixins/backbone.modelbinder.mixin.js | 1 + UI/Settings/Quality/Profile/EditQualityProfileView.js | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/UI/Mixins/backbone.marionette.templates.js b/UI/Mixins/backbone.marionette.templates.js index 48342d1a2..542c257b2 100644 --- a/UI/Mixins/backbone.marionette.templates.js +++ b/UI/Mixins/backbone.marionette.templates.js @@ -18,6 +18,7 @@ Marionette.TemplateCache.get = function (templateId) { catch (error) { console.error('template render failed for ' + templateKey + ' ' + error); console.error(data); + throw error; } }; -}; \ No newline at end of file +}; diff --git a/UI/Mixins/backbone.modelbinder.mixin.js b/UI/Mixins/backbone.modelbinder.mixin.js index 21eae70b1..08f30dd9f 100644 --- a/UI/Mixins/backbone.modelbinder.mixin.js +++ b/UI/Mixins/backbone.modelbinder.mixin.js @@ -25,6 +25,7 @@ Marionette.ItemView.prototype.render = function () { var result = oldItemViewRender.apply(this, arguments); + this.$el.removeClass('iv-' + this.viewName()); //check to see if el has bindings (name attribute) // any element that has a name attribute and isn't child of another view. diff --git a/UI/Settings/Quality/Profile/EditQualityProfileView.js b/UI/Settings/Quality/Profile/EditQualityProfileView.js index 90b4ff5af..296e43e5c 100644 --- a/UI/Settings/Quality/Profile/EditQualityProfileView.js +++ b/UI/Settings/Quality/Profile/EditQualityProfileView.js @@ -55,4 +55,4 @@ define(['app', 'Quality/QualityProfileModel'], function () { } }); -}); \ No newline at end of file +});