Commit 16d34bc8 authored by Maxim Kadushkin's avatar Maxim Kadushkin

[SSE mobile] removed ES6 features

parent e1991660
...@@ -101,11 +101,11 @@ define([ ...@@ -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([ ...@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment