1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-19 05:05:47 +01:00

New prototype ItemList implementation. Faster completion scrolling.

This commit is contained in:
Kris Maglione
2011-10-02 16:00:50 -04:00
parent c500936b2e
commit 7a0b0873ce
10 changed files with 423 additions and 73 deletions

View File

@@ -868,6 +868,7 @@ Class.Memoize = function Memoize(getter, wait)
let done = false;
if (wait)
// Crazy, yeah, I know. -- Kris
this.get = function replace() {
let obj = this.instance || this;
Object.defineProperty(obj, key, {
@@ -892,7 +893,7 @@ Class.Memoize = function Memoize(getter, wait)
return this[key];
};
else
this.get = function replace() {
this.get = function g_Memoize() {
let obj = this.instance || this;
try {
Class.replaceProperty(obj, key, null);
@@ -903,7 +904,7 @@ Class.Memoize = function Memoize(getter, wait)
}
};
this.set = function replace(val) Class.replaceProperty(this.instance || this, val);
this.set = function s_Memoize(val) Class.replaceProperty(this.instance || this, key, val);
}
});
@@ -1227,6 +1228,8 @@ var StructBase = Class("StructBase", Array, {
this[i] = arguments[i];
},
get toStringParams() this,
clone: function struct_clone() this.constructor.apply(null, this.slice()),
closure: Class.Property(Object.getOwnPropertyDescriptor(Class.prototype, "closure")),