Slight code simplification.

This commit is contained in:
bzbarsky@mit.edu 2007-09-20 20:42:59 -07:00
parent 3d72bc9b42
commit 3ca9091c29

View File

@ -253,13 +253,9 @@ for each (var tag in allTags) {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
var nodeClassInfo = node.QueryInterface(Components.interfaces.nsIClassInfo);
var count = {};
var classInfoInterfaces = nodeClassInfo.getInterfaces(count);
// Stringify them
for (var idx = 0; idx < classInfoInterfaces.length; ++idx) {
classInfoInterfaces[idx] =
Components.interfacesByID[classInfoInterfaces[idx]].toString();
}
var classInfoInterfaces =
nodeClassInfo.getInterfaces(count).
map(function(id) { return Components.interfacesByID[id].toString(); });
// Make sure that we know about all the things classinfo claims
for each (var classInfoInterface in classInfoInterfaces) {