Proposal: Using ECMAScript 6 Map for Node._cache instead of plain Object

This commit is contained in:
VladimirTechMan
2019-02-17 23:59:08 +03:00
parent 1dea3696a2
commit 26d40ae1f9
8 changed files with 65 additions and 58 deletions

View File

@@ -1294,7 +1294,7 @@ suite('Transformer', function() {
layer.draw();
assert.equal(tr._cache.transform.m[4], 50);
assert.equal(tr._cache.get('transform').m[4], 50);
var rect = new Konva.Rect({
x: 50,
@@ -1308,7 +1308,7 @@ suite('Transformer', function() {
tr.forceUpdate();
layer.draw();
assert.equal(tr._cache.transform.m[4], 100);
assert.equal(tr._cache.get('transform').m[4], 100);
// tr._fitNodeInto({
// x: 100,