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

Fix completion for things like Cc[foo+"bar]; for a certain value of fix.

This commit is contained in:
Kris Maglione
2010-09-30 09:54:46 -04:00
parent 23458b23d8
commit fe429284d1
2 changed files with 21 additions and 15 deletions

View File

@@ -567,9 +567,9 @@ function update(target) {
let src = arguments[i];
Object.getOwnPropertyNames(src || {}).forEach(function (k) {
let desc = Object.getOwnPropertyDescriptor(src, k);
if (desc.value && desc.value instanceof Class.Property)
if (desc.value instanceof Class.Property)
desc = desc.value.init(k) || desc.value;
if (desc.value && callable(desc.value) && Object.getPrototypeOf(target)) {
if (typeof desc.value == "function" && Object.getPrototypeOf(target)) {
let func = desc.value;
desc.value.superapply = function (self, args)
Object.getPrototypeOf(target)[k].apply(self, args);