1
0
Prechádzať zdrojové kódy

wireKlass inlined, now that was only used at one place

Herbert Vojčík 11 rokov pred
rodič
commit
59266064c5
1 zmenil súbory, kde vykonal 4 pridanie a 9 odobranie
  1. 4 9
      support/boot.js

+ 4 - 9
support/boot.js

@@ -284,13 +284,6 @@ function ManipulationBrik(brikz, st) {
 	}
 	this.installMethod = installMethod;
 
-	this.wireKlass = function (klass) {
-		Object.defineProperty(klass.fn.prototype, "klass", {
-			value: klass,
-			enumerable: false, configurable: true, writable: true
-		});
-	};
-
 	this.reinstallMethods = function (klass) {
 		var methods = klass.methods;
 		for(var keys = Object.keys(methods), i=0; i<keys.length; i++) {
@@ -302,7 +295,6 @@ function ManipulationBrik(brikz, st) {
 function ClassesBrik(brikz, st) {
 
 	var org = brikz.ensure("organize");
-	var manip = brikz.ensure("manipulation");
 	var nil = brikz.ensure("root").nil;
 
 	function SmalltalkPackage() {}
@@ -391,7 +383,10 @@ function ClassesBrik(brikz, st) {
 			value: {},
 			enumerable: false, configurable: true, writable: true
 		});
-		manip.wireKlass(klass);
+		Object.defineProperty(klass.fn.prototype, "klass", {
+			value: klass,
+			enumerable: false, configurable: true, writable: true
+		});
 	}
 
 	/* Add a package to the smalltalk.packages object, creating a new one if needed.