mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-06 08:15:45 +01:00
Replace expression closures (function declarations).
Expression closures are to be axed. See https://bugzil.la/1083458.
This commit is contained in:
@@ -12,9 +12,14 @@ defineModule("finder", {
|
||||
lazyRequire("buffer", ["Buffer"]);
|
||||
lazyRequire("overlay", ["overlay"]);
|
||||
|
||||
function id(w) w.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils)
|
||||
.outerWindowID;
|
||||
function equals(a, b) id(a) == id(b);
|
||||
function id(w) {
|
||||
return w.QueryInterface(Ci.nsIInterfaceRequestor)
|
||||
.getInterface(Ci.nsIDOMWindowUtils)
|
||||
.outerWindowID;
|
||||
}
|
||||
function equals(a, b) {
|
||||
return id(a) == id(b);
|
||||
}
|
||||
|
||||
/** @instance rangefinder */
|
||||
var RangeFinder = Module("rangefinder", {
|
||||
|
||||
Reference in New Issue
Block a user