1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-22 00:15:46 +01:00

Some minor fixes, and add ctypes support to iter().

--HG--
extra : transplant_source : %8A%D5.%EC.%9A%CC%94%D3%AA%03ARn%D5%A0d%DF%FBj
This commit is contained in:
Kris Maglione
2010-10-07 23:18:09 -04:00
parent d6fd5d929d
commit 1c62294ef6
4 changed files with 45 additions and 23 deletions

View File

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