mirror of
https://github.com/konvajs/konva.git
synced 2025-09-19 02:37:59 +08:00
cleaned up undefined, null, 0, and '' comparison operators. To unset a attribute, you can now set it to null, 0, or ''. Setting an attribute to undefined will have no effect
This commit is contained in:
@@ -304,7 +304,7 @@ Test.prototype.tests = {
|
||||
});
|
||||
|
||||
darth.on('mouseout', function() {
|
||||
this.setStroke(undefined);
|
||||
this.setStroke(null);
|
||||
this.setStrokeWidth(0);
|
||||
layer.draw();
|
||||
});
|
||||
|
Reference in New Issue
Block a user