Merge pull request #636 from kitematic/master

Fixing dialog api parameter parsing
This commit is contained in:
Cheng Zhao 2014-09-08 11:26:03 +08:00
commit eb55f1cf47

View file

@ -51,7 +51,7 @@ module.exports =
window,
wrappedCallback
showSaveDialog: (window, options, callback) ->
showSaveDialog: (args...) ->
[window, options, callback] = parseArgs args...
options ?= title: 'Save'
@ -71,7 +71,7 @@ module.exports =
window,
wrappedCallback
showMessageBox: (window, options, callback) ->
showMessageBox: (args...) ->
[window, options, callback] = parseArgs args...
options ?= type: 'none'