Trigger 'window:close' command in the 'beforeunload' event handler.
Trigger 'window:close' command in the 'beforeunload' event handler.

When user wants to close the window, the 'beforeunload' event would be
called, then the closing would be cancelled and the 'window:close'
command would be triggered. In the 'window:close' handler, a confirm
dialog could be showed if there are unsaved contents, and if the window
is really meant to be closed, the window would be tried to be closed
again and this time 'beforeunload' handler wont't prevent it.

harshdattani/atom,hellendag/atom,einarmagnus/atom,jlord/atom,davideg/atom,kdheepak89/atom,vjeux/atom,AlisaKiatkongkumthon/atom,yamhon/atom,kittens/atom,einarmagnus/atom,brettle/atom,xream/atom,Jandersolutions/atom,florianb/atom,kc8wxm/atom,Shekharrajak/atom,nucked/atom,yangchenghu/atom,mostafaeweda/atom,andrewleverette/atom,lisonma/atom,sekcheong/atom,dsandstrom/atom,Jonekee/atom,Huaraz2/atom,hpham04/atom,anuwat121/atom,nucked/atom,Rodjana/atom,DiogoXRP/atom,PKRoma/atom,fredericksilva/atom,kc8wxm/atom,001szymon/atom,AlexxNica/atom,mnquintana/atom,stinsonga/atom,RobinTec/atom,fedorov/atom,ezeoleaf/atom,rsvip/aTom,Abdillah/atom,me-benni/atom,wiggzz/atom,efatsi/atom,fang-yufeng/atom,rjattrill/atom,elkingtonmcb/atom,gisenberg/atom,jjz/atom,tony612/atom,crazyquark/atom,lpommers/atom,Ingramz/atom,russlescai/atom,sillvan/atom,splodingsocks/atom,codex8/atom,qskycolor/atom,Rychard/atom,vcarrera/atom,bradgearon/atom,ObviouslyGreen/atom,YunchengLiao/atom,avdg/atom,fredericksilva/atom,constanzaurzua/atom,ironbox360/atom,dsandstrom/atom,abe33/atom,kc8wxm/atom,Klozz/atom,hakatashi/atom,pombredanne/atom,liuderchi/atom,devmario/atom,ppamorim/atom,erikhakansson/atom,ppamorim/atom,omarhuanca/atom,deoxilix/atom,GHackAnonymous/atom,deepfox/atom,boomwaiza/atom,vcarrera/atom,bradgearon/atom,acontreras89/atom,ali/atom,RobinTec/atom,transcranial/atom,jtrose2/atom,Austen-G/BlockBuilder,G-Baby/atom,mnquintana/atom,NunoEdgarGub1/atom,synaptek/atom,atom/atom,rmartin/atom,jacekkopecky/atom,g2p/atom,Abdillah/atom,fedorov/atom,nrodriguez13/atom,niklabh/atom,G-Baby/atom,liuxiong332/atom,nucked/atom,champagnez/atom,bolinfest/atom,pengshp/atom,NunoEdgarGub1/atom,crazyquark/atom,rxkit/atom,jlord/atom,tanin47/atom,gontadu/atom,n-riesco/atom,bryonwinger/atom,elkingtonmcb/atom,phord/atom,scv119/atom,ardeshirj/atom,Dennis1978/atom,alexandergmann/atom,gzzhanghao/atom,RobinTec/atom,ReddTea/atom,decaffeinate-examples/atom,amine7536/atom,Ju2ender/atom,transcranial/atom,batjko/atom,daxlab/atom,sxgao3001/atom,burodepeper/atom,MjAbuz/atom,oggy/atom,ReddTea/atom,originye/atom,Rodjana/atom,amine7536/atom,sebmck/atom,Abdillah/atom,qskycolor/atom,kittens/atom,mertkahyaoglu/atom,bcoe/atom,rlugojr/atom,pombredanne/atom,devoncarew/atom,kandros/atom,jacekkopecky/atom,chengky/atom,0x73/atom,decaffeinate-examples/atom,GHackAnonymous/atom,devmario/atom,omarhuanca/atom,palita01/atom,chengky/atom,codex8/atom,bsmr-x-script/atom,Sangaroonaom/atom,alfredxing/atom,constanzaurzua/atom,prembasumatary/atom,prembasumatary/atom,scippio/atom,Austen-G/BlockBuilder,ardeshirj/atom,toqz/atom,sxgao3001/atom,john-kelly/atom,t9md/atom,0x73/atom,tjkr/atom,yalexx/atom,jordanbtucker/atom,h0dgep0dge/atom,Dennis1978/atom,charleswhchan/atom,florianb/atom,yalexx/atom,hakatashi/atom,jjz/atom,darwin/atom,stuartquin/atom,Shekharrajak/atom,mostafaeweda/atom,oggy/atom,sekcheong/atom,liuxiong332/atom,bolinfest/atom,sebmck/atom,githubteacher/atom,chfritz/atom,johnhaley81/atom,dannyflax/atom,Galactix/atom,tanin47/atom,avdg/atom,mostafaeweda/atom,Galactix/atom,hagb4rd/atom,harshdattani/atom,hharchani/atom,matthewclendening/atom,ilovezy/atom,charleswhchan/atom,kjav/atom,bsmr-x-script/atom,sillvan/atom,tisu2tisu/atom,githubteacher/atom,vjeux/atom,medovob/atom,targeter21/atom,boomwaiza/atom,ilovezy/atom,isghe/atom,AlbertoBarrago/atom,DiogoXRP/atom,GHackAnonymous/atom,tjkr/atom,ralphtheninja/atom,scippio/atom,GHackAnonymous/atom,AdrianVovk/substance-ide,vinodpanicker/atom,qskycolor/atom,ObviouslyGreen/atom,ironbox360/atom,davideg/atom,gabrielPeart/atom,chfritz/atom,ppamorim/atom,mnquintana/atom,sekcheong/atom,t9md/atom,tmunro/atom,john-kelly/atom,alfredxing/atom,rookie125/atom,Jandersoft/atom,rsvip/aTom,me6iaton/atom,yalexx/atom,deepfox/atom,yamhon/atom,deepfox/atom,execjosh/atom,Jandersolutions/atom,pkdevbox/atom,darwin/atom,h0dgep0dge/atom,Ju2ender/atom,deepfox/atom,basarat/atom,oggy/atom,avdg/atom,fang-yufeng/atom,lisonma/atom,synaptek/atom,Shekharrajak/atom,yamhon/atom,ykeisuke/atom,pkdevbox/atom,amine7536/atom,crazyquark/atom,isghe/atom,Klozz/atom,dannyflax/atom,jacekkopecky/atom,Jdesk/atom,medovob/atom,targeter21/atom,jtrose2/atom,AlbertoBarrago/atom,jlord/atom,AlbertoBarrago/atom,MjAbuz/atom,isghe/atom,constanzaurzua/atom,vjeux/atom,devoncarew/atom,Hasimir/atom,pengshp/atom,acontreras89/atom,SlimeQ/atom,CraZySacX/atom,kc8wxm/atom,xream/atom,githubteacher/atom,liuxiong332/atom,stinsonga/atom,Jdesk/atom,fedorov/atom,lovesnow/atom,hagb4rd/atom,palita01/atom,PKRoma/atom,gontadu/atom,Locke23rus/atom,originye/atom,nvoron23/atom,devmario/atom,Andrey-Pavlov/atom,paulcbetts/atom,FIT-CSE2410-A-Bombs/atom,matthewclendening/atom,nvoron23/atom,chfritz/atom,john-kelly/atom,helber/atom,fang-yufeng/atom,bryonwinger/atom,scv119/atom,AlisaKiatkongkumthon/atom,lisonma/atom,yomybaby/atom,ralphtheninja/atom,stinsonga/atom,nvoron23/atom,ppamorim/atom,seedtigo/atom,bj7/atom,brumm/atom,Abdillah/atom,ykeisuke/atom,Galactix/atom,FoldingText/atom,alexandergmann/atom,ashneo76/atom,Ju2ender/atom,codex8/atom,Shekharrajak/atom,russlescai/atom,toqz/atom,Ju2ender/atom,Ingramz/atom,Arcanemagus/atom,dkfiresky/atom,targeter21/atom,vhutheesing/atom,woss/atom,Mokolea/atom,abcP9110/atom,dkfiresky/atom,vcarrera/atom,hharchani/atom,scv119/atom,florianb/atom,jeremyramin/atom,dsandstrom/atom,tisu2tisu/atom,elkingtonmcb/atom,rxkit/atom,florianb/atom,devoncarew/atom,wiggzz/atom,constanzaurzua/atom,devmario/atom,Jdesk/atom,helber/atom,crazyquark/atom,kaicataldo/atom,yomybaby/atom,bryonwinger/atom,brettle/atom,kdheepak89/atom,svanharmelen/atom,davideg/atom,yalexx/atom,basarat/atom,kjav/atom,NunoEdgarGub1/atom,ezeoleaf/atom,bsmr-x-script/atom,ivoadf/atom,Jandersoft/atom,hellendag/atom,h0dgep0dge/atom,folpindo/atom,batjko/atom,isghe/atom,kevinrenaers/atom,kittens/atom,rjattrill/atom,rlugojr/atom,panuchart/atom,yalexx/atom,bencolon/atom,Jandersoft/atom,ali/atom,vinodpanicker/atom,fscherwi/atom,abe33/atom,qskycolor/atom,h0dgep0dge/atom,kdheepak89/atom,lisonma/atom,n-riesco/atom,qiujuer/atom,targeter21/atom,rookie125/atom,rsvip/aTom,t9md/atom,hharchani/atom,splodingsocks/atom,Rychard/atom,MjAbuz/atom,rsvip/aTom,ilovezy/atom,kandros/atom,kjav/atom,Andrey-Pavlov/atom,jordanbtucker/atom,Huaraz2/atom,sotayamashita/atom,ali/atom,ezeoleaf/atom,svanharmelen/atom,hharchani/atom,dkfiresky/atom,FoldingText/atom,niklabh/atom,bencolon/atom,champagnez/atom,Jandersolutions/atom,woss/atom,lpommers/atom,AlisaKiatkongkumthon/atom,hharchani/atom,omarhuanca/atom,fang-yufeng/atom,einarmagnus/atom,ReddTea/atom,kc8wxm/atom,Andrey-Pavlov/atom,alexandergmann/atom,BogusCurry/atom,devoncarew/atom,nvoron23/atom,codex8/atom,mdumrauf/atom,me6iaton/atom,sxgao3001/atom,daxlab/atom,jlord/atom,splodingsocks/atom,vinodpanicker/atom,dannyflax/atom,charleswhchan/atom,ObviouslyGreen/atom,anuwat121/atom,dijs/atom,rmartin/atom,jjz/atom,mertkahyaoglu/atom,stuartquin/atom,johnrizzo1/atom,vinodpanicker/atom,hakatashi/atom,bcoe/atom,Sangaroonaom/atom,kaicataldo/atom,BogusCurry/atom,kdheepak89/atom,paulcbetts/atom,bcoe/atom,batjko/atom,chengky/atom,synaptek/atom,mdumrauf/atom,nrodriguez13/atom,nrodriguez13/atom,deoxilix/atom,sillvan/atom,gisenberg/atom,rjattrill/atom,bencolon/atom,gabrielPeart/atom,vinodpanicker/atom,kandros/atom,Austen-G/BlockBuilder,vcarrera/atom,mertkahyaoglu/atom,cyzn/atom,jtrose2/atom,ali/atom,yangchenghu/atom,toqz/atom,Austen-G/BlockBuilder,NunoEdgarGub1/atom,qiujuer/atom,hellendag/atom,fredericksilva/atom,lovesnow/atom,davideg/atom,florianb/atom,matthewclendening/atom,Shekharrajak/atom,me6iaton/atom,russlescai/atom,matthewclendening/atom,Neron-X5/atom,champagnez/atom,sotayamashita/atom,gisenberg/atom,ReddTea/atom,constanzaurzua/atom,CraZySacX/atom,jacekkopecky/atom,Rychard/atom,Neron-X5/atom,Huaraz2/atom,fang-yufeng/atom,john-kelly/atom,synaptek/atom,Andrey-Pavlov/atom,basarat/atom,ilovezy/atom,kevinrenaers/atom,mrodalgaard/atom,originye/atom,FoldingText/atom,daxlab/atom,bj7/atom,einarmagnus/atom,yangchenghu/atom,ReddTea/atom,qiujuer/atom,beni55/atom,anuwat121/atom,sxgao3001/atom,jlord/atom,jacekkopecky/atom,phord/atom,Locke23rus/atom,hpham04/atom,liuxiong332/atom,erikhakansson/atom,rmartin/atom,gisenberg/atom,lovesnow/atom,me-benni/atom,charleswhchan/atom,YunchengLiao/atom,sebmck/atom,jjz/atom,decaffeinate-examples/atom,abcP9110/atom,batjko/atom,Sangaroonaom/atom,abcP9110/atom,kittens/atom,atom/atom,mnquintana/atom,jacekkopecky/atom,dannyflax/atom,AlexxNica/atom,KENJU/atom,Galactix/atom,jeremyramin/atom,me6iaton/atom,vhutheesing/atom,folpindo/atom,Austen-G/BlockBuilder,mrodalgaard/atom,lpommers/atom,abcP9110/atom,decaffeinate-examples/atom,tjkr/atom,rxkit/atom,jtrose2/atom,scippio/atom,YunchengLiao/atom,hagb4rd/atom,MjAbuz/atom,brumm/atom,pombredanne/atom,execjosh/atom,Jandersolutions/atom,sekcheong/atom,Jonekee/atom,acontreras89/atom,ivoadf/atom,hagb4rd/atom,davideg/atom,fedorov/atom,Jonekee/atom,toqz/atom,NunoEdgarGub1/atom,Neron-X5/atom,kjav/atom,001szymon/atom,toqz/atom,0x73/atom,Jdesk/atom,panuchart/atom,KENJU/atom,Neron-X5/atom,rjattrill/atom,AlexxNica/atom,charleswhchan/atom,dkfiresky/atom,sillvan/atom,Neron-X5/atom,g2p/atom,jjz/atom,johnrizzo1/atom,fredericksilva/atom,kittens/atom,splodingsocks/atom,dkfiresky/atom,andrewleverette/atom,Arcanemagus/atom,jtrose2/atom,dijs/atom,liuderchi/atom,sebmck/atom,Jandersolutions/atom,panuchart/atom,Mokolea/atom,rsvip/aTom,amine7536/atom,svanharmelen/atom,KENJU/atom,mertkahyaoglu/atom,yomybaby/atom,kdheepak89/atom,liuxiong332/atom,omarhuanca/atom,tmunro/atom,Dennis1978/atom,pombredanne/atom,SlimeQ/atom,FoldingText/atom,ralphtheninja/atom,gzzhanghao/atom,Rodjana/atom,hpham04/atom,acontreras89/atom,pombredanne/atom,n-riesco/atom,Hasimir/atom,targeter21/atom,Hasimir/atom,andrewleverette/atom,burodepeper/atom,SlimeQ/atom,rmartin/atom,seedtigo/atom,Hasimir/atom,AdrianVovk/substance-ide,Jandersoft/atom,Mokolea/atom,acontreras89/atom,sxgao3001/atom,rmartin/atom,sillvan/atom,einarmagnus/atom,Ingramz/atom,bcoe/atom,isghe/atom,gabrielPeart/atom,tisu2tisu/atom,brumm/atom,tony612/atom,Galactix/atom,qiujuer/atom,tony612/atom,mostafaeweda/atom,erikhakansson/atom,0x73/atom,transcranial/atom,Ju2ender/atom,bj7/atom,ashneo76/atom,prembasumatary/atom,MjAbuz/atom,liuderchi/atom,yomybaby/atom,lovesnow/atom,BogusCurry/atom,nvoron23/atom,mdumrauf/atom,dsandstrom/atom,oggy/atom,omarhuanca/atom,n-riesco/atom,phord/atom,codex8/atom,jeremyramin/atom,beni55/atom,matthewclendening/atom,ezeoleaf/atom,bradgearon/atom,hpham04/atom,RuiDGoncalves/atom,rlugojr/atom,FoldingText/atom,john-kelly/atom,scv119/atom,medovob/atom,basarat/atom,tmunro/atom,boomwaiza/atom,woss/atom,G-Baby/atom,chengky/atom,jordanbtucker/atom,alfredxing/atom,atom/atom,kjav/atom,pkdevbox/atom,FIT-CSE2410-A-Bombs/atom,FoldingText/atom,russlescai/atom,vjeux/atom,SlimeQ/atom,abe33/atom,Abdillah/atom,mertkahyaoglu/atom,lisonma/atom,sekcheong/atom,palita01/atom,harshdattani/atom,cyzn/atom,yomybaby/atom,YunchengLiao/atom,gontadu/atom,vjeux/atom,PKRoma/atom,devoncarew/atom,CraZySacX/atom,beni55/atom,AdrianVovk/substance-ide,fscherwi/atom,Jdesk/atom,me6iaton/atom,prembasumatary/atom,mostafaeweda/atom,oggy/atom,pengshp/atom,g2p/atom,wiggzz/atom,Arcanemagus/atom,ardeshirj/atom,dsandstrom/atom,efatsi/atom,qiujuer/atom,n-riesco/atom,rookie125/atom,devmario/atom,batjko/atom,ilovezy/atom,me-benni/atom,KENJU/atom,Austen-G/BlockBuilder,RuiDGoncalves/atom,deepfox/atom,RobinTec/atom,Jandersoft/atom,fedorov/atom,tony612/atom,mrodalgaard/atom,liuderchi/atom,dannyflax/atom,Andrey-Pavlov/atom,001szymon/atom,abcP9110/atom,ali/atom,dannyflax/atom,Locke23rus/atom,bcoe/atom,YunchengLiao/atom,gzzhanghao/atom,stinsonga/atom,burodepeper/atom,RuiDGoncalves/atom,kaicataldo/atom,ykeisuke/atom,niklabh/atom,prembasumatary/atom,tony612/atom,bryonwinger/atom,crazyquark/atom,woss/atom,ironbox360/atom,Klozz/atom,ashneo76/atom,ivoadf/atom,efatsi/atom,russlescai/atom,woss/atom,seedtigo/atom,johnhaley81/atom,execjosh/atom,chengky/atom,helber/atom,lovesnow/atom,amine7536/atom,paulcbetts/atom,mnquintana/atom,paulcbetts/atom,qskycolor/atom,kevinrenaers/atom,stuartquin/atom,vhutheesing/atom,RobinTec/atom,ppamorim/atom,xream/atom,sebmck/atom,folpindo/atom,DiogoXRP/atom,KENJU/atom,hakatashi/atom,basarat/atom,SlimeQ/atom,gisenberg/atom,hagb4rd/atom,fscherwi/atom,vcarrera/atom,sotayamashita/atom,deoxilix/atom,hpham04/atom,basarat/atom,fredericksilva/atom,darwin/atom,dijs/atom,brettle/atom,GHackAnonymous/atom,Hasimir/atom,bolinfest/atom,FIT-CSE2410-A-Bombs/atom,johnhaley81/atom,johnrizzo1/atom,synaptek/atom,cyzn/atom,tanin47/atom