|
@@ -109,17 +109,6 @@ define(function () {
|
|
|
name: traitName,
|
|
|
make: function () {
|
|
|
var that = new SmalltalkTrait();
|
|
|
- // TODO deprecation helper; remove
|
|
|
- Object.defineProperty(that, "className", {
|
|
|
- get: function () {
|
|
|
- console.warn("Use of .className deprecated, use .name");
|
|
|
- return that.name;
|
|
|
- },
|
|
|
- set: function (v) {
|
|
|
- console.warn("Use of .className= deprecated, use .name=");
|
|
|
- that.name = v;
|
|
|
- }
|
|
|
- });
|
|
|
that.name = traitName;
|
|
|
that.traitUsers = [];
|
|
|
setupMethods(that);
|
|
@@ -291,8 +280,7 @@ define(function () {
|
|
|
// Effective superclass of all classes created with `nil subclass: ...`.
|
|
|
var nilAsClass = this.nilAsClass = {
|
|
|
fn: SmalltalkRoot,
|
|
|
- a$cls: {fn: SmalltalkClass},
|
|
|
- klass: {fn: SmalltalkClass}
|
|
|
+ a$cls: {fn: SmalltalkClass}
|
|
|
};
|
|
|
|
|
|
SmalltalkMetaclass.prototype.meta = true;
|
|
@@ -324,7 +312,7 @@ define(function () {
|
|
|
|
|
|
this.bootstrapHierarchy = function () {
|
|
|
var nilSubclasses = [globals.ProtoObject];
|
|
|
- nilAsClass.a$cls = nilAsClass.klass = globals.Class;
|
|
|
+ nilAsClass.a$cls = globals.Class;
|
|
|
nilSubclasses.forEach(function (each) {
|
|
|
each.a$cls.superclass = globals.Class;
|
|
|
addSubclass(each.a$cls);
|
|
@@ -351,17 +339,6 @@ define(function () {
|
|
|
}, superclass.fn);
|
|
|
that.iVarNames = iVarNames || [];
|
|
|
|
|
|
- // TODO deprecation helper; remove
|
|
|
- Object.defineProperty(that, "className", {
|
|
|
- get: function () {
|
|
|
- console.warn("Use of .className deprecated, use .name");
|
|
|
- return that.name;
|
|
|
- },
|
|
|
- set: function (v) {
|
|
|
- console.warn("Use of .className= deprecated, use .name=");
|
|
|
- that.name = v;
|
|
|
- }
|
|
|
- });
|
|
|
that.name = className;
|
|
|
that.subclasses = [];
|
|
|
|
|
@@ -400,10 +377,6 @@ define(function () {
|
|
|
value: klass,
|
|
|
enumerable: false, configurable: true, writable: true
|
|
|
});
|
|
|
- Object.defineProperty(klass.fn.prototype, "klass", {
|
|
|
- value: klass,
|
|
|
- enumerable: false, configurable: true, writable: true
|
|
|
- });
|
|
|
}
|
|
|
|
|
|
this.wireKlass = wireKlass;
|