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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user