mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 13:52:26 +01:00
liberator.eval (:js/:echo/...) now uses a separate context. JS completion uses disposable contexts that last one session.
This commit is contained in:
@@ -350,6 +350,11 @@ const util = { //{{{
|
||||
try // window.content often does not want to be queried with "var i in object"
|
||||
{
|
||||
let hasValue = !("__iterator__" in object);
|
||||
if (object.__proto__ == modules || object.__proto__ == plugins)
|
||||
{
|
||||
object = Iterator(object);
|
||||
hasValue = false;
|
||||
}
|
||||
for (let i in object)
|
||||
{
|
||||
let value = <![CDATA[<no value>]]>;
|
||||
@@ -365,6 +370,7 @@ const util = { //{{{
|
||||
else
|
||||
var noVal = true;
|
||||
}
|
||||
|
||||
value = template.highlight(value, true, 150);
|
||||
// FIXME: Inline style.
|
||||
key = <span style="font-weight: bold;">{i}</span>;
|
||||
|
||||
Reference in New Issue
Block a user