这之间是否有任何性能差异:
var rect1 = new Kinetic.Rect({ listening: false }),
rect2 = new Kinetic.Rect({ listening: false }),
group = new Kinetic.Group;
group.add( rect1 );
group.add( rect2 );
......而且这个:
var rect1 = new Kinetic.Rect,
rect2 = new Kinetic.Rect,
group = new Kinetic.Group({ listening: false });
group.add( rect1 );
group.add( rect2 );
如果是这样,为什么?