1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 12:42:26 +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 */ /** @scope modules */
Cu.import("resource://gre/modules/XPCOMUtils.jsm"); Cu.import("resource://gre/modules/XPCOMUtils.jsm", modules);
const plugins = {}; const plugins = {};
plugins.__proto__ = modules; plugins.__proto__ = modules;

View File

@@ -1797,7 +1797,7 @@ function ItemList(id) //{{{
function getRows(context) function getRows(context)
{ {
function fix(n) Math.max(0, Math.min(len, n)); 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 len = context.items.length;
let start = off; let start = off;
off += len; 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() function Struct()
{ {
let self = this instanceof Struct ? this : new Struct(); let self = this instanceof Struct ? this : new Struct();