var verbosity = WARNINGS;
function log(msg) {
- msg = msg.toString ? msg.toString() : msg;
if (console && console.log)
console.log(msg);
else if (print)
}
constructor.prototype = {
- toString: function() {
- return this.name;
- }
};
return constructor;
}
constructor.prototype = {
- toString: function() {
- return this.cmd;
- }
};
return constructor;
forEach: function(aCallback) {
for (var key in this.map)
aCallback(key, this.map[key]);
- },
- toString: function() {
- var keys = [];
- for (var key in this.map)
- keys.push(key);
- return "Dict with " + keys.length + " keys: " + keys;
}
};