1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-03 16:44:11 +01:00

Fix bugs and deprecate stuff.

This commit is contained in:
Kris Maglione
2012-12-20 19:07:28 -08:00
parent d0e53df525
commit fc4851458b
3 changed files with 10 additions and 7 deletions

View File

@@ -89,6 +89,7 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
parseForm: deprecated("DOM#formData", function parseForm(elem) values(DOM(elem).formData).toArray()),
scrollIntoView: deprecated("DOM#scrollIntoView", function scrollIntoView(elem, alignWithTop) DOM(elem).scrollIntoView(alignWithTop)),
validateMatcher: deprecated("DOM.validateMatcher", { get: function validateMatcher() DOM.validateMatcher }),
xmlToDom: deprecated("DOM.fromJSON", function xmlToDom() DOM.fromXML.apply(DOM, arguments)),
map: deprecated("iter.map", function map(obj, fn, self) iter(obj).map(fn, self).toArray()),
writeToClipboard: deprecated("dactyl.clipboardWrite", function writeToClipboard(str, verbose) util.dactyl.clipboardWrite(str, verbose)),
@@ -1702,9 +1703,7 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
catch (e) {
throw e.stack ? e : Error(e);
}
},
xmlToDom: function () DOM.fromXML.apply(DOM, arguments)
}
}, {
Array: array
});