mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-22 16:15:46 +01:00
Remove dead protocols.js symlinks.
This commit is contained in:
@@ -302,6 +302,9 @@ var DOM = Class("DOM", {
|
||||
},
|
||||
|
||||
get editor() {
|
||||
if (!this.length)
|
||||
return;
|
||||
|
||||
this[0] instanceof Ci.nsIDOMNSEditableElement;
|
||||
if (this[0].editor instanceof Ci.nsIEditor)
|
||||
return this[0].editor;
|
||||
@@ -511,6 +514,9 @@ var DOM = Class("DOM", {
|
||||
elem.setAttributeNS(ns, k, v);
|
||||
});
|
||||
|
||||
if (!this.length)
|
||||
return null;
|
||||
|
||||
if (Set.has(hooks, key) && hooks[key].get)
|
||||
return hooks[key].get.call(this, this[0]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user