[DE] refactoring
This commit is contained in:
parent
0cf3621991
commit
b388be7dca
|
@ -66,8 +66,7 @@ define([
|
||||||
|
|
||||||
// Render layout
|
// Render layout
|
||||||
render: function() {
|
render: function() {
|
||||||
var el = $(this.el);
|
this.$el.html(this.template({}));
|
||||||
el.html(this.template({}));
|
|
||||||
|
|
||||||
// Workaround Safari's scrolling problem
|
// Workaround Safari's scrolling problem
|
||||||
if (Common.Utils.isSafari) {
|
if (Common.Utils.isSafari) {
|
||||||
|
@ -80,7 +79,7 @@ define([
|
||||||
$('body').addClass('chrome');
|
$('body').addClass('chrome');
|
||||||
}
|
}
|
||||||
|
|
||||||
var $container = $('#viewport-vbox-layout', el);
|
var $container = $('#viewport-vbox-layout', this.$el);
|
||||||
this.vlayout = new Common.UI.VBoxLayout({
|
this.vlayout = new Common.UI.VBoxLayout({
|
||||||
box: $container,
|
box: $container,
|
||||||
items: [{
|
items: [{
|
||||||
|
@ -96,7 +95,7 @@ define([
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
$container = $('#viewport-hbox-layout', el);
|
$container = $('#viewport-hbox-layout', this.$el);
|
||||||
var items = $container.find(' > .layout-item');
|
var items = $container.find(' > .layout-item');
|
||||||
this.hlayout = new Common.UI.HBoxLayout({
|
this.hlayout = new Common.UI.HBoxLayout({
|
||||||
box: $container,
|
box: $container,
|
||||||
|
|
Loading…
Reference in a new issue