@@ -466,7 +466,7 @@ class SketchField extends PureComponent {
466466 if ( activeObj ) {
467467 let selected = [ ] ;
468468 if ( activeObj . type === 'activeSelection' ) {
469- activeObj . forEachObject ( ( obj ) => [ ] . push ( obj ) ) ;
469+ activeObj . forEachObject ( obj => selected . push ( obj ) ) ;
470470 } else {
471471 selected . push ( activeObj )
472472 }
@@ -603,22 +603,11 @@ class SketchField extends PureComponent {
603603 canvas . on ( 'object:moving' , this . _onObjectMoving ) ;
604604 canvas . on ( 'object:scaling' , this . _onObjectScaling ) ;
605605 canvas . on ( 'object:rotating' , this . _onObjectRotating ) ;
606- // Events binding
607- canvas . on ( 'object:added' , this . _onObjectAdded ) ;
608- canvas . on ( 'object:modified' , this . _onObjectModified ) ;
609- canvas . on ( 'object:removed' , this . _onObjectRemoved ) ;
610- canvas . on ( 'mouse:down' , this . _onMouseDown ) ;
611- canvas . on ( 'mouse:move' , this . _onMouseMove ) ;
612- canvas . on ( 'mouse:up' , this . _onMouseUp ) ;
613- canvas . on ( 'mouse:out' , this . _onMouseOut ) ;
614- canvas . on ( 'object:moving' , this . _onObjectMoving ) ;
615- canvas . on ( 'object:scaling' , this . _onObjectScaling ) ;
616- canvas . on ( 'object:rotating' , this . _onObjectRotating ) ;
617- // IText Events fired on Adding Text
618- // canvas.on("text:event:changed", console.log)
619- // canvas.on("text:selection:changed", console.log)
620- // canvas.on("text:editing:entered", console.log)
621- // canvas.on("text:editing:exited", console.log)
606+ // IText Events fired on Adding Text
607+ // canvas.on("text:event:changed", console.log)
608+ // canvas.on("text:selection:changed", console.log)
609+ // canvas.on("text:editing:entered", console.log)
610+ // canvas.on("text:editing:exited", console.log)
622611
623612 this . disableTouchScroll ( ) ;
624613
0 commit comments