1
0
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:
Kris Maglione
2010-12-22 12:55:12 -05:00
parent b0bca11890
commit 1b47c5d6e3
2 changed files with 2 additions and 2 deletions

View File

@@ -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) {

View File

@@ -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);