1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 03:57:59 +01:00

Add n_s and n_S.

This commit is contained in:
Kris Maglione
2011-08-11 14:03:17 -04:00
parent ac3f218620
commit c4a40df0b7
6 changed files with 64 additions and 37 deletions

View File

@@ -1297,9 +1297,13 @@ function octal(decimal) parseInt(decimal, 8);
* function.
*
* @param {object} obj
* @param {nsIJSIID} iface The interface to which to query all elements.
* @returns {Generator}
*/
function iter(obj) {
function iter(obj, iface) {
if (arguments.length == 2 && iface instanceof Ci.nsIJSIID)
return iter(obj).map(function (item) item.QueryInterface(iface));
let args = arguments;
let res = Iterator(obj);