fix lint errors

This commit is contained in:
Johannes Millan 2017-01-20 14:56:49 +01:00
parent 53bdf43af4
commit 6c768230ca
4 changed files with 7 additions and 7 deletions

View file

@ -271,17 +271,17 @@
}
}
function initMousewheelZoomForElectron($document, IS_ELECTRON) {
function initMousewheelZoomForElectron($document, $window, IS_ELECTRON) {
if (IS_ELECTRON) {
const { webFrame } = require('electron');
Hamster($document[0]).wheel(function (event, delta, deltaX, deltaY) {
$window.Hamster($document[0]).wheel(function (event, delta, deltaX, deltaY) {
if (event.originalEvent && event.originalEvent.ctrlKey) {
const zoomFactor = webFrame.getZoomFactor();
if (deltaY === 1) {
webFrame.setZoomFactor(zoomFactor + 0.05)
webFrame.setZoomFactor(zoomFactor + 0.05);
} else if (deltaY === -1) {
webFrame.setZoomFactor(zoomFactor - 0.05)
webFrame.setZoomFactor(zoomFactor - 0.05);
}
}
});

View file

@ -26,7 +26,7 @@
/* @ngInject */
function AgendaAndHistoryCtrl() {
let vm = this;
//let vm = this;
}
})();

View file

@ -69,5 +69,5 @@
'grey',
'blue-grey'
]
)
);
})();

View file

@ -342,7 +342,7 @@
const backlogT = this.getBacklog();
const doneBacklogT = this.getDoneBacklog();
return _.concat(todaysT, backlogT, doneBacklogT)
return _.concat(todaysT, backlogT, doneBacklogT);
};
this.flattenTasks = (tasks, checkFnParent, checkFnSub) => {