mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-07 23:05:46 +01:00
Remove dead protocols.js symlinks.
This commit is contained in:
@@ -302,6 +302,9 @@ var DOM = Class("DOM", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
get editor() {
|
get editor() {
|
||||||
|
if (!this.length)
|
||||||
|
return;
|
||||||
|
|
||||||
this[0] instanceof Ci.nsIDOMNSEditableElement;
|
this[0] instanceof Ci.nsIDOMNSEditableElement;
|
||||||
if (this[0].editor instanceof Ci.nsIEditor)
|
if (this[0].editor instanceof Ci.nsIEditor)
|
||||||
return this[0].editor;
|
return this[0].editor;
|
||||||
@@ -511,6 +514,9 @@ var DOM = Class("DOM", {
|
|||||||
elem.setAttributeNS(ns, k, v);
|
elem.setAttributeNS(ns, k, v);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (!this.length)
|
||||||
|
return null;
|
||||||
|
|
||||||
if (Set.has(hooks, key) && hooks[key].get)
|
if (Set.has(hooks, key) && hooks[key].get)
|
||||||
return hooks[key].get.call(this, this[0]);
|
return hooks[key].get.call(this, this[0]);
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ defineModule("messages", {
|
|||||||
require: ["services", "util"]
|
require: ["services", "util"]
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
// TODO: Lazy instantiation
|
|
||||||
var Messages = Module("messages", {
|
var Messages = Module("messages", {
|
||||||
|
|
||||||
init: function init(name) {
|
init: function init(name) {
|
||||||
|
|||||||
@@ -498,7 +498,7 @@ var Overlay = Module("Overlay", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReferen
|
|||||||
Object.defineProperty(object, k, desc);
|
Object.defineProperty(object, k, desc);
|
||||||
|
|
||||||
if (callable(value)) {
|
if (callable(value)) {
|
||||||
let sentinel = "(function DactylOverlay() {}())"
|
var sentinel = "(function DactylOverlay() {}())"
|
||||||
value.toString = function toString() toString.toString.call(this).replace(/\}?$/, sentinel + "; $&");
|
value.toString = function toString() toString.toString.call(this).replace(/\}?$/, sentinel + "; $&");
|
||||||
value.toSource = function toSource() toSource.toSource.call(this).replace(/\}?$/, sentinel + "; $&");
|
value.toSource = function toSource() toSource.toSource.call(this).replace(/\}?$/, sentinel + "; $&");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
../../common/components/protocols.js
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
../../common/components/protocols.js
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
../../common/components/protocols.js
|
|
||||||
Reference in New Issue
Block a user