mirror of
https://github.com/konvajs/konva.git
synced 2025-09-22 20:14:01 +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:
@@ -14,7 +14,7 @@ Kinetic.Sprite = function(config) {
|
||||
});
|
||||
|
||||
config.drawFunc = function() {
|
||||
if(this.attrs.image !== undefined) {
|
||||
if(!!this.attrs.image) {
|
||||
var context = this.getContext();
|
||||
var anim = this.attrs.animation;
|
||||
var index = this.attrs.index;
|
||||
|
Reference in New Issue
Block a user