mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 08:28:01 +01:00
Fix completion messages
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user