Skip to content

Commit

Permalink
rename events
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson authored and Garrett Johnson committed Jun 27, 2019
1 parent bf4c4f9 commit 01fd0e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Object3D.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ Object3D.prototype = Object.assign( Object.create( EventDispatcher.prototype ),
this.children.push( object );

object.dispatchEvent( { type: 'added' } );
this.dispatchEvent( { type: 'addchild', child: object } );
this.dispatchEvent( { type: 'childadded', child: object } );

} else {

Expand Down Expand Up @@ -426,7 +426,7 @@ Object3D.prototype = Object.assign( Object.create( EventDispatcher.prototype ),
this.children.splice( index, 1 );

object.dispatchEvent( { type: 'removed' } );
this.dispatchEvent( { type: 'removechild', child: object } );
this.dispatchEvent( { type: 'childremoved', child: object } );

}

Expand Down

0 comments on commit 01fd0e1

Please sign in to comment.