mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-13 10:15:45 +01:00
Initial work towards making <C-o> and <C-i> more Vim-like.
This commit is contained in:
@@ -611,8 +611,7 @@ function call(fn) {
|
||||
*/
|
||||
function memoize(obj, key, getter) {
|
||||
if (arguments.length == 1) {
|
||||
obj = update({ __proto__: obj.__proto__ }, obj);
|
||||
for (let prop in Object.getOwnPropertyNames(obj)) {
|
||||
for each (let prop in Object.getOwnPropertyNames(obj)) {
|
||||
let get = __lookupGetter__.call(obj, prop);
|
||||
if (get)
|
||||
memoize(obj, prop, get);
|
||||
|
||||
Reference in New Issue
Block a user