Calling asynchronous functions in renderer now doesn't block browser.

This commit is contained in:
Cheng Zhao 2013-09-24 18:01:12 +08:00
parent 085f0a2544
commit 14de58a6b7
2 changed files with 17 additions and 4 deletions

View file

@ -1,4 +1,5 @@
binding = process.atomBinding 'dialog'
v8Util = process.atomBinding 'v8_util'
BrowserWindow = require 'browser-window'
fileDialogProperties =
@ -72,3 +73,6 @@ module.exports =
String(options.detail),
window,
callback
# Mark standard asynchronous functions.
v8Util.setHiddenValue f, 'asynchronous', true for k, f of module.exports