Explorar o código

Minor beautification.

Mr.doob %!s(int64=12) %!d(string=hai) anos
pai
achega
937ea35201
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/core/EventDispatcher.js

+ 2 - 1
src/core/EventDispatcher.js

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