1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-16 04:05:45 +01:00

Fix cookie manager exploding in newer Firefoxen.

This commit is contained in:
Kris Maglione
2012-12-17 21:02:45 -08:00
parent 6ee5b2ca26
commit 9479a32a91
2 changed files with 12 additions and 1 deletions

View File

@@ -719,6 +719,15 @@ var DOM = Class("DOM", {
}, this);
},
fragment: function fragment() {
let frag = this.document.createDocumentFragment();
this.appendTo(frag);
return this;
},
clone: function clone(deep)
this.map(function (elem) elem.cloneNode(deep)),
toggle: function toggle(val, self) {
if (callable(val))
return this.each(function (elem, i) {
@@ -1535,6 +1544,8 @@ var DOM = Class("DOM", {
return args.toDOM(doc, namespaces, nodes);
if (args instanceof Ci.nsIDOMNode)
return args;
if (args instanceof DOM)
return args.fragment();
if ("toJSONXML" in args)
args = args.toJSONXML();