1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 04:47:59 +01:00

Fix completion messages

This commit is contained in:
Kris Maglione
2009-01-12 01:05:37 -05:00
parent ae63a675d8
commit 358b4b2f4b
3 changed files with 2 additions and 5 deletions

View File

@@ -28,7 +28,7 @@ the terms of any one of the MPL, the GPL or the LGPL.
/** @scope modules */
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/XPCOMUtils.jsm", modules);
const plugins = {};
plugins.__proto__ = modules;

View File

@@ -1797,7 +1797,7 @@ function ItemList(id) //{{{
function getRows(context)
{
function fix(n) Math.max(0, Math.min(len, n));
end -= context.message + context.incomplete;
end -= !!context.message + context.incomplete;
let len = context.items.length;
let start = off;
off += len;

View File

@@ -687,9 +687,6 @@ const util = { //{{{
}
}; //}}}
// Struct is really slow, AT LEAST 5 times slower than using structs or simple Objects
// main reason is the function ConStructor(), which i couldn't get faster.
// Maybe it's a TraceMonkey problem, for now don't use it for anything which must be fast (like bookmarks or history)
function Struct()
{
let self = this instanceof Struct ? this : new Struct();