Ver Fonte

Minor beautification.

Mr.doob há 12 anos atrás
pai
commit
937ea35201
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      src/core/EventDispatcher.js

+ 2 - 1
src/core/EventDispatcher.js

@@ -77,9 +77,10 @@ THREE.EventDispatcher.prototype = {
 
 
 		if ( listenerArray !== undefined ) {
 		if ( listenerArray !== undefined ) {
 
 
-			listenerArray = listenerArray.slice();
 			event.target = this;
 			event.target = this;
 
 
+			listenerArray = listenerArray.slice();
+
 			for ( var i = 0, l = listenerArray.length; i < l; i ++ ) {
 			for ( var i = 0, l = listenerArray.length; i < l; i ++ ) {
 
 
 				listenerArray[ i ].call( this, event );
 				listenerArray[ i ].call( this, event );

粤ICP备19079148号