Browse Source

Minor beautification.

Mr.doob 11 years ago
parent
commit
937ea35201
1 changed files with 2 additions and 1 deletions
  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 );