+function getFeatures(jid) {
+ var cb, ecb;
+ cb = function(result) { /* Callback */
+ commandCenter.getCommandNodes(function(items) { $('#output').empty(); $('#output').append(items) });
+ }
+ ecb = function(result) { /* Errback */
+ $('#output').append("<p>" + jid + " does NOT support AdHoc commands</p>");
+ }
+ commandCenter.checkFeatures(jid, cb, ecb);
+}
+