mirror of
https://github.com/konvajs/konva.git
synced 2025-11-18 17:21:36 +08:00
no reason to use a Kinetic.Collection inside _getNodes because the elements are pushed into a collection outside of _getNodes
This commit is contained in:
@@ -229,7 +229,7 @@ Kinetic.Container.prototype = {
|
||||
* get all shapes inside container
|
||||
*/
|
||||
_getNodes: function(sel) {
|
||||
var arr = new Kinetic.Collection();
|
||||
var arr = [];
|
||||
function traverse(cont) {
|
||||
var children = cont.getChildren();
|
||||
for(var n = 0; n < children.length; n++) {
|
||||
|
||||
Reference in New Issue
Block a user