mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 07:19:19 +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:
parent
1d9679a0f3
commit
bda7f9f082
2
dist/kinetic-core.js
vendored
2
dist/kinetic-core.js
vendored
@ -2693,7 +2693,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++) {
|
||||
|
4
dist/kinetic-core.min.js
vendored
4
dist/kinetic-core.min.js
vendored
File diff suppressed because one or more lines are too long
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user