mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 22:37:58 +01:00
Some minor fixes, and add ctypes support to iter().
--HG-- branch : mode-refactoring
This commit is contained in:
@@ -25,16 +25,16 @@ const FailedAssertion = Class("FailedAssertion", Error, {
|
||||
}
|
||||
});
|
||||
|
||||
deprecated.seen = { "chrome://dactyl/content/javascript.js": true };
|
||||
function deprecated(reason, fn)
|
||||
function deprecated(reason, fn) update(
|
||||
function deprecatedMethod() {
|
||||
let frame = Components.stack.caller;
|
||||
if (!set.add(deprecated.seen, frame.filename))
|
||||
if (!set.add(deprecatedMethod.seen, frame.filename))
|
||||
dactyl.echoerr(frame.filename + ":" + frame.lineNumber + ": " +
|
||||
(this.className || this.constructor.className) + "." + fn.name +
|
||||
" is deprecated: " + reason);
|
||||
return fn.apply(this, arguments);
|
||||
}
|
||||
},
|
||||
{ seen: { "chrome://dactyl/content/javascript.js": true } });
|
||||
|
||||
const Dactyl = Module("dactyl", {
|
||||
init: function () {
|
||||
|
||||
Reference in New Issue
Block a user