mirror of
https://github.com/konvajs/konva.git
synced 2025-12-17 18:01:15 +08:00
Fix clone function to support custom Shapes. close #71
This commit is contained in:
@@ -1340,7 +1340,7 @@
|
||||
attrs[key] = obj[key];
|
||||
}
|
||||
|
||||
var node = new Konva[className](attrs);
|
||||
var node = new this.constructor(attrs);
|
||||
// copy over listeners
|
||||
for(key in this.eventListeners) {
|
||||
allListeners = this.eventListeners[key];
|
||||
|
||||
Reference in New Issue
Block a user