Use the new function converter in dialog api.

This commit is contained in:
Cheng Zhao 2014-04-18 17:19:15 +08:00
parent 499c9bc3b9
commit 1dd57bd3a4
2 changed files with 20 additions and 72 deletions

View file

@ -30,7 +30,7 @@ module.exports =
String(options.defaultPath),
properties,
window,
callback
(success, result) -> callback if success then result
showSaveDialog: (window, options, callback) ->
unless window?.constructor is BrowserWindow
@ -46,7 +46,7 @@ module.exports =
binding.showSaveDialog String(options.title),
String(options.defaultPath),
window,
callback
(success, result) -> callback if success then result
showMessageBox: (window, options, callback) ->
unless window?.constructor is BrowserWindow