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:
ericdrowell 2012-09-23 15:47:15 -07:00
parent 1d9679a0f3
commit bda7f9f082
3 changed files with 4 additions and 4 deletions

View File

@ -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++) {

File diff suppressed because one or more lines are too long

View File

@ -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++) {