From b388be7dcaae2abb3e299eca32bdeb0d90d6151a Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Wed, 5 Apr 2017 12:23:20 +0300 Subject: [PATCH] [DE] refactoring --- apps/documenteditor/main/app/view/Viewport.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/apps/documenteditor/main/app/view/Viewport.js b/apps/documenteditor/main/app/view/Viewport.js index abb265fa9..0dde7ff71 100644 --- a/apps/documenteditor/main/app/view/Viewport.js +++ b/apps/documenteditor/main/app/view/Viewport.js @@ -66,8 +66,7 @@ define([ // Render layout render: function() { - var el = $(this.el); - el.html(this.template({})); + this.$el.html(this.template({})); // Workaround Safari's scrolling problem if (Common.Utils.isSafari) { @@ -80,7 +79,7 @@ define([ $('body').addClass('chrome'); } - var $container = $('#viewport-vbox-layout', el); + var $container = $('#viewport-vbox-layout', this.$el); this.vlayout = new Common.UI.VBoxLayout({ box: $container, items: [{ @@ -96,7 +95,7 @@ define([ ] }); - $container = $('#viewport-hbox-layout', el); + $container = $('#viewport-hbox-layout', this.$el); var items = $container.find(' > .layout-item'); this.hlayout = new Common.UI.HBoxLayout({ box: $container,