1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-16 05:23:32 +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) if (elem instanceof Document)
elem = elem.defaultView; elem = elem.defaultView;
if (elem instanceof Window) if (elem instanceof Window)
services.focus.focusedWindow = elem; services.focus.clearFocus(elem);
else else
services.focus.setFocus(elem, flags); services.focus.setFocus(elem, flags);
} catch (e) { } catch (e) {

View File

@@ -248,7 +248,7 @@ function deprecated(reason, fn) {
let frame = Components.stack.caller; let frame = Components.stack.caller;
let obj = this.className || this.constructor.className; let obj = this.className || this.constructor.className;
if (!set.add(deprecatedMethod.seen, frame.filename)) if (!set.add(deprecatedMethod.seen, frame.filename))
util.dactyl.echoerr( util.dactyl(fn).echoerr(
util.urlPath(frame.filename || "unknown") + ":" + frame.lineNumber + ": " + util.urlPath(frame.filename || "unknown") + ":" + frame.lineNumber + ": " +
(obj ? obj + "." : "") + (fn.name || name) + " is deprecated: " + reason); (obj ? obj + "." : "") + (fn.name || name) + " is deprecated: " + reason);
return func.apply(this, arguments); return func.apply(this, arguments);