From 1b83549cab1c1f311a5e264f8e10ed972660a4b7 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Tue, 9 Jul 2013 20:05:43 -0700 Subject: [PATCH] General settings tab is model bound --- UI/Settings/General/GeneralTemplate.html | 4 ++-- UI/Settings/General/GeneralView.js | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/UI/Settings/General/GeneralTemplate.html b/UI/Settings/General/GeneralTemplate.html index a3f914b65..e5d20a166 100644 --- a/UI/Settings/General/GeneralTemplate.html +++ b/UI/Settings/General/GeneralTemplate.html @@ -45,8 +45,8 @@
diff --git a/UI/Settings/General/GeneralView.js b/UI/Settings/General/GeneralView.js index aa208a0c5..4088bc13e 100644 --- a/UI/Settings/General/GeneralView.js +++ b/UI/Settings/General/GeneralView.js @@ -1,8 +1,10 @@ 'use strict'; -define(['marionette'], function (Marionette) { - return Marionette.ItemView.extend({ +define(['marionette', 'Mixins/AsModelBoundView'], function (Marionette, AsModelBoundView) { + var view = Marionette.ItemView.extend({ template: 'Settings/General/GeneralTemplate' } ); + + return AsModelBoundView.call(view); });