--harmony_collections is not needed anymore

This commit is contained in:
Cheng Zhao 2014-10-16 20:59:01 +08:00
parent feb6a93881
commit b41d356143

View file

@ -12,8 +12,6 @@ app.on('window-all-closed', function() {
}); });
app.on('ready', function() { app.on('ready', function() {
app.commandLine.appendSwitch('js-flags', '--harmony_collections');
mainWindow = new BrowserWindow({ mainWindow = new BrowserWindow({
width: 800, width: 800,
height: 600, height: 600,
@ -155,11 +153,11 @@ app.on('ready', function() {
label: 'File', label: 'File',
submenu: [ submenu: [
{ {
label: 'Open', label: '&Open',
accelerator: 'Ctrl+O', accelerator: 'Ctrl+O',
}, },
{ {
label: 'Close', label: '&Close',
accelerator: 'Ctrl+W', accelerator: 'Ctrl+W',
click: function() { mainWindow.close(); } click: function() { mainWindow.close(); }
}, },
@ -169,16 +167,16 @@ app.on('ready', function() {
label: 'View', label: 'View',
submenu: [ submenu: [
{ {
label: 'Reload', label: '&Reload',
accelerator: 'Ctrl+R', accelerator: 'Ctrl+R',
click: function() { mainWindow.restart(); } click: function() { mainWindow.restart(); }
}, },
{ {
label: 'Enter Fullscreen', label: '&Enter Fullscreen',
click: function() { mainWindow.setFullScreen(true); } click: function() { mainWindow.setFullScreen(true); }
}, },
{ {
label: 'Toggle DevTools', label: '&Toggle DevTools',
accelerator: 'Alt+Ctrl+I', accelerator: 'Alt+Ctrl+I',
click: function() { mainWindow.toggleDevTools(); } click: function() { mainWindow.toggleDevTools(); }
}, },