Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit 805c5f0

Browse files
committed
lint fix
1 parent 0d91192 commit 805c5f0

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

js/views/baseVw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = Backbone.View.extend({
1515
// method called if the parent is removed.
1616
//
1717
// As of now, this doesn't work if called from initialize() of your view.
18-
// If you do need to register children from there, wrape the call in a timeout:
18+
// If you do need to register children from there, wrap the call in a timeout:
1919
// setTimeout(() => this.registerChild(myChildVw));
2020
registerChild: function(childView) {
2121
if (this._childViews.indexOf(childView) === -1) {

js/views/serverConnectModal.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22

3-
var loadTemplate = require('../utils/loadTemplate'),
3+
var __ = require('underscore'),
4+
loadTemplate = require('../utils/loadTemplate'),
45
app = require('../App.js').getApp(),
56
remote = require('electron').remote,
67
ServerConfigMd = require('../models/serverConfigMd'),
@@ -45,7 +46,7 @@ module.exports = BaseModal.extend({
4546
this.listenTo(this.serverConfigsVw, 'connect', this.onConnectClick);
4647
this.listenTo(this.serverConfigsVw, 'cancel', this.onCancelClick);
4748

48-
options.userModel.on('change:language', (md, lang) => {
49+
options.userModel.on('change:language', () => {
4950
this.setHeaderState(this._headerState);
5051
this.serverConfigFormVw && this.serverConfigFormVw.render();
5152
this.serverConfigsVw.render();
@@ -64,7 +65,7 @@ module.exports = BaseModal.extend({
6465
var translatedState;
6566

6667
this._headerState = __.extend(this._headerState, state || {});
67-
translatedState = this._headerState;
68+
translatedState = __.extend({}, this._headerState);
6869

6970
Object.keys(this._headerState).forEach((key) => {
7071
if (['msg', 'title'].indexOf(key) !== -1) {

0 commit comments

Comments
 (0)