1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-29 03:52:26 +01:00

Fix :quit. Closes #1126.

This commit is contained in:
Kris Maglione
2014-02-27 08:06:12 -08:00
parent 9522178892
commit fb976055c7
2 changed files with 3 additions and 1 deletions

View File

@@ -1596,7 +1596,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
function (args) {
if (dactyl.has("tabs") && tabs.remove(tabs.getTab(), 1, false))
return;
else if (dactyl.windows.size > 1)
else if (dactyl.windows.length > 1)
window.close();
else
dactyl.quit(false, args.bang);

View File

@@ -124,6 +124,8 @@ var Modules = function Modules(window) {
get document() window.document,
get navigator() window.navigator,
window: window,
Module: Module,