From 3efeaf5a473a22b8505368fba1a5dce2725c2f2d Mon Sep 17 00:00:00 2001 From: AlasdairSwan Date: Mon, 27 Oct 2014 10:05:48 -0400 Subject: [PATCH] Moved pre-render to first in initialize to ensure runs before render --- lms/static/js/student_account/views/FormView.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lms/static/js/student_account/views/FormView.js b/lms/static/js/student_account/views/FormView.js index ce9aa17a71..9aca2099f6 100644 --- a/lms/static/js/student_account/views/FormView.js +++ b/lms/static/js/student_account/views/FormView.js @@ -29,6 +29,7 @@ var edx = edx || {}; requiredStr: '*', initialize: function( data ) { + this.preRender( data ); this.tpl = $(this.tpl).html(); this.fieldTpl = $(this.fieldTpl).html(); @@ -36,8 +37,6 @@ var edx = edx || {}; this.model = data.model; this.listenTo( this.model, 'error', this.saveError ); - - this.preRender( data ); }, /* Allows extended views to add custom