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

Add liberator.modules namespace, load scripts via subscript loader, report better errors on :so with here docs, beep when clicking an input field in command line mode.

This commit is contained in:
Kris Maglione
2008-10-13 21:05:48 +00:00
parent b7e36f74ed
commit ff7c3c1210
27 changed files with 789 additions and 751 deletions

View File

@@ -1,5 +1,5 @@
with (liberator) liberator.template = {
const template = {
add: function (a, b) a + b,
join: function (c) function (a, b) a + c + b,
@@ -84,7 +84,7 @@ with (liberator) liberator.template = {
return <>{str}</>;
let lcstr = String(str).toLowerCase();
let lcfilter = filter.toLowerCase();
str = String(str).replace(" ", " ");
str = String(str).replace(" ", "\u00a0");
let s = <></>;
let start = 0;
let i;
@@ -129,7 +129,7 @@ with (liberator) liberator.template = {
({
template.map(item.extra, function (e)
<>{e[0]}: <span class={e[2]}>{e[1]}</span></>,
<![CDATA[ ]]>/* Non-breaking space */)
<![CDATA[\u00a0]]>/* Non-breaking space */)
})
</span>
}