[SSE mobile] removed ES6 features
This commit is contained in:
parent
e1991660d7
commit
16d34bc887
|
@ -101,11 +101,11 @@ define([
|
||||||
this.editorView = this.createView('Editor').render();
|
this.editorView = this.createView('Editor').render();
|
||||||
|
|
||||||
$$(window).on('resize', _.bind(this.onWindowResize, this));
|
$$(window).on('resize', _.bind(this.onWindowResize, this));
|
||||||
Common.NotificationCenter.on('layout:changed', (source, args) => {
|
Common.NotificationCenter.on('layout:changed', function(source, args) {
|
||||||
if ( source == 'navbar' ) {
|
if ( source == 'navbar' ) {
|
||||||
this.editorView.$el.find('.page.editor')[args.hidden?'addClass':'removeClass']('no-padding');
|
this.editorView.$el.find('.page.editor')[args.hidden?'addClass':'removeClass']('no-padding');
|
||||||
}
|
}
|
||||||
});
|
}.bind(this));
|
||||||
},
|
},
|
||||||
|
|
||||||
onWindowResize: function(e) {
|
onWindowResize: function(e) {
|
||||||
|
|
|
@ -106,7 +106,7 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
addSheet: function(model) {
|
addSheet: function(model) {
|
||||||
let index = this.$boxTabs.children().length;
|
var index = this.$boxTabs.children().length;
|
||||||
var $item = $(this.tabtemplate({
|
var $item = $(this.tabtemplate({
|
||||||
'label': model.get('name')
|
'label': model.get('name')
|
||||||
})).appendTo(this.$boxTabs)
|
})).appendTo(this.$boxTabs)
|
||||||
|
|
Loading…
Reference in a new issue