From 299fd0982f3989d2dc6e0c1b17b8caa3d2bbc5ad Mon Sep 17 00:00:00 2001 From: cahrens Date: Wed, 19 Jul 2017 16:20:38 -0400 Subject: [PATCH] Fix safe lint violation. --- cms/static/js/views/xblock_access_editor.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cms/static/js/views/xblock_access_editor.js b/cms/static/js/views/xblock_access_editor.js index acd7c38984..d490327d5e 100644 --- a/cms/static/js/views/xblock_access_editor.js +++ b/cms/static/js/views/xblock_access_editor.js @@ -2,8 +2,8 @@ * XBlockAccessEditor is a view that allows the user to restrict access at the unit level on the container page. * This view renders the button to restrict unit access into the appropriate place in the unit page. */ -define(['js/views/baseview'], - function(BaseView) { +define(['js/views/baseview', 'edx-ui-toolkit/js/utils/html-utils'], + function(BaseView, HtmlUtils) { 'use strict'; var XBlockAccessEditor = BaseView.extend({ // takes XBlockInfo as a model @@ -13,7 +13,10 @@ define(['js/views/baseview'], }, render: function() { - this.$el.append(this.template({})); + HtmlUtils.append( + this.$el, + HtmlUtils.HTML(this.template({})) + ); return this; } });