mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 05:04:17 +01:00
Revert revision c24f695526a9. Closes issue #208.
This commit is contained in:
@@ -369,7 +369,7 @@ const Dactyl = Module("dactyl", {
|
||||
if (elem instanceof Document)
|
||||
elem = elem.defaultView;
|
||||
if (elem instanceof Window)
|
||||
services.focus.focusedWindow = elem;
|
||||
services.focus.clearFocus(elem);
|
||||
else
|
||||
services.focus.setFocus(elem, flags);
|
||||
} catch (e) {
|
||||
|
||||
@@ -248,7 +248,7 @@ function deprecated(reason, fn) {
|
||||
let frame = Components.stack.caller;
|
||||
let obj = this.className || this.constructor.className;
|
||||
if (!set.add(deprecatedMethod.seen, frame.filename))
|
||||
util.dactyl.echoerr(
|
||||
util.dactyl(fn).echoerr(
|
||||
util.urlPath(frame.filename || "unknown") + ":" + frame.lineNumber + ": " +
|
||||
(obj ? obj + "." : "") + (fn.name || name) + " is deprecated: " + reason);
|
||||
return func.apply(this, arguments);
|
||||
|
||||
Reference in New Issue
Block a user