Mr.doob 12 лет назад
Родитель
Сommit
937ea35201
1 измененных файлов с 2 добавлено и 1 удалено
  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 );