1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 01:22:27 +01:00

More bootstrap work.

--HG--
branch : bootstrapped
This commit is contained in:
Kris Maglione
2010-12-23 22:35:49 -05:00
parent 909a658338
commit c396c279c4
5 changed files with 51 additions and 20 deletions

View File

@@ -13,7 +13,7 @@
*/
const Events = Module("events", {
init: function () {
let _events = "if (window.dactyl ∧ dactyl.modules.loaded.events) return dactyl.modules.events"
let _events = "if (window.dactyl && dactyl.modules.loaded.events) return dactyl.modules.events"
util.overlayWindow(window, {
append: <e4x xmlns={XUL}>
<window id={document.documentElement.id}>
@@ -21,11 +21,11 @@ const Events = Module("events", {
from: http://developer.mozilla.org/en/docs/XUL_Tutorial:Updating_Commands !-->
<!-- I don't think we really need this. Kris -->
<commandset id="onPentadactylFocus" commandupdater="true" events="focus"
oncommandupdate="{_events}.onFocusChange(event);"/>
oncommandupdate={_events + ".onFocusChange(event);"}/>
<commandset id="onPentadactylSelect" commandupdater="true" events="select"
oncommandupdate="{_events}.onSelectionChange(event);"/>
oncommandupdate={_events + ".onSelectionChange(event);"}/>
</window>
</e4x>.*
</e4x>.elements()
});
this._fullscreen = window.fullScreen;