that.toString = function() {
return '[Widget ' + team.name() + ':' + type + ']';
- }
+ };
var fn = mkws.promotionFunction(type);
if (fn) {
fn.call(that);
log("made " + type + " widget(node=" + node + ")");
} else {
- log("made UNENCAPSULATED widget(type=" + type + ", node=" + node + ")");
+ log("made UNPROMOTED widget(type=" + type + ", node=" + node + ")");
}
return that;