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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user