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

Commit 8a92775

Browse files
committed
fixing eslint issues
1 parent 1fc89f6 commit 8a92775

File tree

4 files changed

+10
-16
lines changed

4 files changed

+10
-16
lines changed

.eslintrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
"no-extend-native": 2,
5151
"no-extra-bind": 2,
5252
"no-extra-boolean-cast": 2,
53-
"no-extra-parens": [2, "all", {"nestedBinaryExpressions": false}],
5453
"no-extra-semi": 2,
5554
"no-fallthrough": 2,
5655
"no-floating-decimal": 2,

js/start.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ var loadProfile = function(landingRoute, onboarded) {
460460
};
461461

462462
// any lang changes after our app has loaded will need an app re-start to fully take effect
463-
user.on('change:language', function(md, lang) {
463+
user.on('change:language', function() {
464464
var restartWarning;
465465

466466
restartWarning = new Dialog({

js/views/baseModal.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ baseModal = baseVw.extend({
5353
},
5454

5555
__onDocKeypress: function(e) {
56-
var openModals = baseModal.__openModals,
57-
topModal = this.__getTopModal();
56+
var topModal = this.__getTopModal();
5857

5958
if (this.__options.dismissOnEscPress && e.keyCode === 27 &&
6059
topModal && topModal === this) {
@@ -83,11 +82,10 @@ baseModal = baseVw.extend({
8382
var aZindex = parseInt(window.getComputedStyle(a.modal.el).zIndex) || 0,
8483
bZindex = parseInt(window.getComputedStyle(b.modal.el).zIndex) || 0;
8584

86-
if (aZindex === bZindex) {
85+
if (aZindex === bZindex) {
8786
return (a.index < b.index) ? -1 : (a.index > b.index) ? 1 : 0;
88-
} else {
89-
return (aZindex < bZindex) ? -1 : (aZindex > bZindex) ? 1 : 0;
90-
}
87+
}
88+
return (aZindex < bZindex) ? -1 : (aZindex > bZindex) ? 1 : 0;
9189
});
9290

9391
return openModals[openModals.length - 1] && openModals[openModals.length - 1].modal;

js/views/transactionsVw.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,7 @@ module.exports = pageVw.extend({
367367
tempAnchor.href = window.URL.createObjectURL(dataBlob);
368368
tempAnchor.download = ('export_'+saveDate.toLocaleString(window.lang)+'.csv').replace(/,/g, '_');
369369
tempAnchor.click();
370-
},
371-
self = this;
370+
};
372371

373372
//clear existing data
374373
this.currentExportData = [];
@@ -399,12 +398,10 @@ module.exports = pageVw.extend({
399398

400399
return $.when.apply(null, calls)
401400
.fail(function(){
402-
self.registerChild(
403-
new Dialog({
404-
title: window.polyglot.t('errorMessages.getError'),
405-
message: window.polyglot.t('errorMessages.serverError')
406-
})
407-
);
401+
app.simpleMessageModal.open({
402+
title: window.polyglot.t('errorMessages.getError'),
403+
message: window.polyglot.t('errorMessages.serverError')
404+
});
408405

409406
calls.forEach(call => {
410407
call.abort();

0 commit comments

Comments
 (0)