mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-28 23:02:27 +01:00
Add dactylIUtils.createContents. Closes issue #581.
This commit is contained in:
@@ -143,6 +143,8 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
}
|
||||
|
||||
function addChildren(node, parent) {
|
||||
DOM(node).createContents();
|
||||
|
||||
if (~["menu", "menupopup"].indexOf(node.localName) && node.children.length)
|
||||
dispatch(node, "popupshowing");
|
||||
|
||||
|
||||
@@ -688,6 +688,9 @@ var DOM = Class("DOM", {
|
||||
}, this);
|
||||
},
|
||||
|
||||
createContents: function createContents()
|
||||
this.each(DOM.createContents, this),
|
||||
|
||||
getSet: function getSet(args, get, set) {
|
||||
if (!args.length)
|
||||
return this[0] && get.call(this, this[0]);
|
||||
@@ -1240,6 +1243,9 @@ var DOM = Class("DOM", {
|
||||
})
|
||||
}),
|
||||
|
||||
createContents: Class.Memoize(function () services.has("dactyl") && services.dactyl.createContents
|
||||
|| function (elem) {}),
|
||||
|
||||
/**
|
||||
* The set of input element type attribute values that mark the element as
|
||||
* an editable field.
|
||||
|
||||
Reference in New Issue
Block a user