Make dialog.showOpenDialog accept callback.

This commit is contained in:
Cheng Zhao 2013-09-23 19:23:49 +08:00
parent d3dd2b4332
commit c95cfc9540
2 changed files with 53 additions and 13 deletions

View file

@ -28,7 +28,8 @@ module.exports =
binding.showOpenDialog String(options.title),
String(options.defaultPath),
properties,
window
window,
callback
showSaveDialog: (window, options) ->
throw new TypeError('Invalid window') unless window?.constructor is BrowserWindow