reverted variadic input caching experiment

pull/95/head
jmoenig 2020-12-17 17:14:52 +01:00
rodzic fbc5da9e9d
commit 8052149707
2 zmienionych plików z 1 dodań i 7 usunięć

Wyświetl plik

@ -10,6 +10,7 @@
### 2020-12-17 ### 2020-12-17
* blocks: added hook for caching variadic inputs * blocks: added hook for caching variadic inputs
* blocks: refactored blockSequence() non-recursively * blocks: refactored blockSequence() non-recursively
* reverted variadic input caching experiment
### 2020-12-16 ### 2020-12-16
* threads, objects: added dev debugging hook for counting yields * threads, objects: added dev debugging hook for counting yields

Wyświetl plik

@ -11403,10 +11403,6 @@ MultiArgMorph.prototype = new ArgMorph();
MultiArgMorph.prototype.constructor = MultiArgMorph; MultiArgMorph.prototype.constructor = MultiArgMorph;
MultiArgMorph.uber = ArgMorph.prototype; MultiArgMorph.uber = ArgMorph.prototype;
// MultiArgMorph preferences settings:
// MultiArgMorph.prototype.isCachingInputs = true; // commented out for now
// MultiArgMorph instance creation: // MultiArgMorph instance creation:
function MultiArgMorph( function MultiArgMorph(
@ -11525,7 +11521,6 @@ MultiArgMorph.prototype.setContents = function (anArray) {
inputs[i].setContents(anArray[i]); inputs[i].setContents(anArray[i]);
} }
} }
this.cachedInputs = null;
}; };
// MultiArgMorph hiding and showing: // MultiArgMorph hiding and showing:
@ -11686,7 +11681,6 @@ MultiArgMorph.prototype.addInput = function (contents) {
this.children.splice(idx, 0, newPart); this.children.splice(idx, 0, newPart);
newPart.fixLayout(); newPart.fixLayout();
this.fixLayout(); this.fixLayout();
this.cachedInputs = null;
return newPart; return newPart;
}; };
@ -11704,7 +11698,6 @@ MultiArgMorph.prototype.removeInput = function () {
} }
} }
this.fixLayout(); this.fixLayout();
this.cachedInputs = null;
}; };
MultiArgMorph.prototype.is3ArgRingInHOF = function () { MultiArgMorph.prototype.is3ArgRingInHOF = function () {