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

use the singleton construction idiom to create vimperator.tabs

This commit is contained in:
Doug Kearns
2007-11-12 12:29:54 +00:00
parent 68f1597c38
commit 695fd63e91
7 changed files with 178 additions and 179 deletions

View File

@@ -245,9 +245,12 @@ const vimperator = (function () //{{{
var string = "";
var obj = "";
try { // for window.JSON
try
{ // for window.JSON
obj = object.toString();
} catch (e) {
}
catch (e)
{
obj = "<Object>";
}
@@ -604,7 +607,7 @@ const vimperator = (function () //{{{
vimperator.log("Loading module editor...", 3);
vimperator.editor = vimperator.Editor();
vimperator.log("Loading module tabs...", 3);
vimperator.tabs = new vimperator.Tabs();
vimperator.tabs = vimperator.Tabs();
vimperator.log("Loading module marks...", 3);
vimperator.marks = vimperator.Marks();
vimperator.log("Loading module quickmarks...", 3);