|
@@ -154,22 +154,18 @@ define(['./junk-drawer'], function ($goodies) {
|
|
|
return 'Smalltalk Trait ' + this.name;
|
|
|
};
|
|
|
|
|
|
- declareEvent("traitMethodAdded");
|
|
|
SmalltalkTrait.prototype.methodAdded = function (method) {
|
|
|
var self = this;
|
|
|
this.traitUsers.forEach(function (each) {
|
|
|
traitMethodChanged(method.selector, method, self, each);
|
|
|
});
|
|
|
- emit.traitMethodAdded(method, this);
|
|
|
};
|
|
|
|
|
|
- declareEvent("traitMethodRemoved");
|
|
|
SmalltalkTrait.prototype.methodRemoved = function (method) {
|
|
|
var self = this;
|
|
|
this.traitUsers.forEach(function (each) {
|
|
|
traitMethodChanged(method.selector, null, self, each);
|
|
|
});
|
|
|
- emit.traitMethodRemoved(method, this);
|
|
|
};
|
|
|
|
|
|
function traitBuilder (traitName, category) {
|