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

applied 'B' patch from Lars (not working fully)

cleaned up init() and moved all eventlisteneres code to addEventListeners()
This commit is contained in:
Martin Stubenschrott
2007-04-24 12:12:59 +00:00
parent 9a8a0b92f3
commit 9e71e74a5c
4 changed files with 120 additions and 66 deletions

View File

@@ -113,8 +113,8 @@ var g_commands = [/*{{{*/
[
["buffers", "files", "ls"],
["buffers"],
"Shows a list of all buffers.",
function (args) {bufshow("", false);},
"Shows a list of all buffers.<br/>If the list is already shown, close the preview window.",
buffer_preview_toggle,
null
],
[
@@ -1509,13 +1509,6 @@ function buffer_preview_update(event)
bufshow("", false);
}
// adds listeners to buffer actions.
var container = getBrowser().tabContainer;
container.addEventListener("TabOpen", buffer_preview_update, false);
container.addEventListener("TabSelect", buffer_preview_update, false);
container.addEventListener("TabMove", buffer_preview_update, false);
container.addEventListener("TabClose", buffer_preview_update, false);
////////////////////////////////////////////////////////////////////////
// scrolling ////////////////////////////////////////////////////// {{{1