1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-07 23:24:12 +01:00

Fix services initialization bug.

This commit is contained in:
Kris Maglione
2011-03-05 22:56:02 -05:00
parent 5eda487e43
commit 216b2575fd

View File

@@ -148,7 +148,7 @@ var Services = Module("Services", {
addClass: function (name, class_, ifaces, init) {
const self = this;
this[name] = function () self._create(class_, ifaces, "createInstance", init, arguments);
update.apply(null, [this[name]].concat([Ci[i] for each (i in ifaces)]));
update.apply(null, [this[name]].concat([Ci[i] for each (i in Array.concat(ifaces))]));
return this[name];
},