mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 18:32:25 +01:00
Use the wrapped object for completion of XPCNativeWrappers
This commit is contained in:
@@ -149,6 +149,8 @@ liberator.Completion = function () //{{{
|
|||||||
// Things we can dereference
|
// Things we can dereference
|
||||||
if (["object", "string", "function"].indexOf(typeof obj) == -1)
|
if (["object", "string", "function"].indexOf(typeof obj) == -1)
|
||||||
continue;
|
continue;
|
||||||
|
if (/^\[XPCNativeWrapper /.test(obj))
|
||||||
|
obj = obj.wrappedJSObject;
|
||||||
|
|
||||||
for (let [k, v] in this.iter(obj))
|
for (let [k, v] in this.iter(obj))
|
||||||
compl.push([k, liberator.template.highlight(v, true)]);
|
compl.push([k, liberator.template.highlight(v, true)]);
|
||||||
|
|||||||
@@ -72,10 +72,7 @@ the terms of any one of the MPL, the GPL or the LGPL.
|
|||||||
|
|
||||||
*:-moz-loading, *:-moz-broken { display: none !important; }
|
*:-moz-loading, *:-moz-broken { display: none !important; }
|
||||||
|
|
||||||
.compitem > td {
|
.compitem > td { -moz-binding: url(chrome://liberator/content/bindings.xml#compitem-td); }
|
||||||
display: table-cell;
|
|
||||||
-moz-binding: url(chrome://liberator/content/bindings.xml#compitem-td);
|
|
||||||
}
|
|
||||||
.compitem-td-span { height: 1.5em; display: block; }
|
.compitem-td-span { height: 1.5em; display: block; }
|
||||||
|
|
||||||
.compitem[selected=true] { background-color: yellow; }
|
.compitem[selected=true] { background-color: yellow; }
|
||||||
|
|||||||
Reference in New Issue
Block a user