mirror of
https://github.com/konvajs/konva.git
synced 2025-09-19 10:47:59 +08:00
Shape.hasShadow cache fix
Typo was causing hasShadow cache not to be invalidated after using setShadowEnabled. Fixes issue #693
This commit is contained in:
@@ -131,6 +131,10 @@ suite('Shape', function() {
|
||||
shape.setShadowOpacity(0.5);
|
||||
|
||||
assert.equal(shape.hasShadow(), true, 'shape should have a shadow because opacity is nonzero');
|
||||
|
||||
shape.setShadowEnabled(false);
|
||||
|
||||
assert.equal(shape.hasShadow(), false, 'shape should not have a shadow because it is not enabled');
|
||||
});
|
||||
|
||||
// ======================================================
|
||||
|
Reference in New Issue
Block a user