|
@@ -193,7 +193,8 @@ define(['./compatibility'], function () {
|
|
|
|
|
|
that.superclass = setSuperClass;
|
|
|
that.fn = spec.fn || inherits(function () {
|
|
|
- }, spec.superclass.fn);
|
|
|
+ }, inherits(function () {
|
|
|
+ }, spec.superclass.fn));
|
|
|
that.iVarNames = spec.iVarNames || [];
|
|
|
|
|
|
that.className = spec.className;
|
|
@@ -205,7 +206,8 @@ define(['./compatibility'], function () {
|
|
|
}
|
|
|
|
|
|
function metaclass (spec) {
|
|
|
- var that = new SmalltalkMetaclass();
|
|
|
+ var that = new (inherits(function () {
|
|
|
+ }, SmalltalkMetaclass))();
|
|
|
|
|
|
that.superclass = spec.superclass.klass;
|
|
|
that.fn = inherits(function () {
|