[SSE mobile] removed ES6 features

This commit is contained in:
Maxim Kadushkin 2016-12-20 18:09:16 +03:00
parent e1991660d7
commit 16d34bc887
2 changed files with 3 additions and 3 deletions

View file

@ -101,11 +101,11 @@ define([
this.editorView = this.createView('Editor').render();
$$(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' ) {
this.editorView.$el.find('.page.editor')[args.hidden?'addClass':'removeClass']('no-padding');
}
});
}.bind(this));
},
onWindowResize: function(e) {

View file

@ -106,7 +106,7 @@ define([
},
addSheet: function(model) {
let index = this.$boxTabs.children().length;
var index = this.$boxTabs.children().length;
var $item = $(this.tabtemplate({
'label': model.get('name')
})).appendTo(this.$boxTabs)