2
0
Prechádzať zdrojové kódy

Copy inherited methods first, methods last. Fix #224.

Herbert Vojčík 12 rokov pred
rodič
commit
bb0c62c1da
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      js/boot.js

+ 2 - 2
js/boot.js

@@ -232,11 +232,11 @@ function Smalltalk(){
 
 	st.methods = function(klass) {
 		var methods = {};
-		var copyFrom = klass.fn.prototype.methods;
+		var copyFrom = klass.fn.prototype.inheritedMethods;
 		for(var i=0, k=Object.keys(copyFrom), l=k.length; i<l; ++i) {
 			methods[k[i]] = copyFrom[k[i]];
 		}
-		copyFrom = klass.fn.prototype.inheritedMethods;
+		copyFrom = klass.fn.prototype.methods;
 		for(var i=0, k=Object.keys(copyFrom), l=k.length; i<l; ++i) {
 			methods[k[i]] = copyFrom[k[i]];
 		}