Use direct params instead of rest params
This commit is contained in:
parent
4f4dc2f4d8
commit
43746727aa
3 changed files with 9 additions and 11 deletions
|
@ -43,9 +43,9 @@ var checkAppInitialized = function() {
|
|||
|
||||
module.exports = {
|
||||
showOpenDialog: function(...args) {
|
||||
var callback, options, prop, properties, ref1, value, window, wrappedCallback;
|
||||
var prop, properties, value, wrappedCallback;
|
||||
checkAppInitialized();
|
||||
ref1 = parseArgs.apply(null, args), window = ref1[0], options = ref1[1], callback = ref1[2];
|
||||
let [window, options, callback] = parseArgs.apply(null, args);
|
||||
if (options == null) {
|
||||
options = {
|
||||
title: 'Open',
|
||||
|
@ -81,9 +81,9 @@ module.exports = {
|
|||
},
|
||||
|
||||
showSaveDialog: function(...args) {
|
||||
var callback, options, ref1, window, wrappedCallback;
|
||||
var wrappedCallback;
|
||||
checkAppInitialized();
|
||||
ref1 = parseArgs.apply(null, args), window = ref1[0], options = ref1[1], callback = ref1[2];
|
||||
let [window, options, callback] = parseArgs.apply(null, args);
|
||||
if (options == null) {
|
||||
options = {
|
||||
title: 'Save'
|
||||
|
@ -105,9 +105,9 @@ module.exports = {
|
|||
},
|
||||
|
||||
showMessageBox: function(...args) {
|
||||
var callback, flags, i, j, len, messageBoxType, options, ref1, ref2, ref3, text, window;
|
||||
var flags, i, j, len, messageBoxType, ref2, ref3, text;
|
||||
checkAppInitialized();
|
||||
ref1 = parseArgs.apply(null, args), window = ref1[0], options = ref1[1], callback = ref1[2];
|
||||
let [window, options, callback] = parseArgs.apply(null, args);
|
||||
if (options == null) {
|
||||
options = {
|
||||
type: 'none'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue