1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 12:17:59 +01:00

Add experimental jQuery-ish DOM object.

This commit is contained in:
Kris Maglione
2011-08-14 16:58:24 -04:00
parent 93bdb3dd42
commit 1509ee96e5
5 changed files with 599 additions and 134 deletions

View File

@@ -55,7 +55,7 @@ var Editor = Module("editor", {
elem.scrollTop = top;
elem.scrollLeft = left;
events.dispatch(elem, events.create(elem.ownerDocument, "input"));
DOM(elem).input();
}
},
@@ -248,10 +248,10 @@ var Editor = Module("editor", {
textBox.value = val;
if (false) {
textBox.setAttributeNS(NS, "modifiable", true);
util.computedStyle(textBox).MozUserInput;
events.dispatch(textBox, events.create(textBox.ownerDocument, "input", {}));
textBox.removeAttributeNS(NS, "modifiable");
let elem = DOM(textBox);
elem.attrNS(NS, "modifiable", true)
.style.MozUserInput;
elem.input().attrNS(NS, "modifiable", null);
}
}
else {