Use arrow functions to replace old CoffeeScript => this wrappers
This commit is contained in:
parent
100ea975bd
commit
a3f08c9b51
10 changed files with 176 additions and 212 deletions
|
@ -1,3 +1,5 @@
|
|||
'use strict';
|
||||
|
||||
const deprecate = require('electron').deprecate;
|
||||
const session = require('electron').session;
|
||||
const Menu = require('electron').Menu;
|
||||
|
@ -89,11 +91,9 @@ deprecate.rename(app, 'terminate', 'quit');
|
|||
deprecate.event(app, 'finish-launching', 'ready', function() {
|
||||
|
||||
// give default app a chance to setup default menu.
|
||||
return setImmediate((function(_this) {
|
||||
return function() {
|
||||
return _this.emit('finish-launching');
|
||||
};
|
||||
})(this));
|
||||
setImmediate(() => {
|
||||
this.emit('finish-launching');
|
||||
});
|
||||
});
|
||||
|
||||
deprecate.event(app, 'activate-with-no-open-windows', 'activate', function(event, hasVisibleWindows) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue