Procházet zdrojové kódy

Protect EventDispatcher against the closure circular reference bug

Tristan VALCKE před 8 roky
rodič
revize
b9de3e2c6c
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      src/core/EventDispatcher.js

+ 2 - 2
src/core/EventDispatcher.js

@@ -4,7 +4,7 @@
 
 function EventDispatcher() {}
 
-EventDispatcher.prototype = {
+Object.assign( EventDispatcher.prototype, {
 
 	addEventListener: function ( type, listener ) {
 
@@ -87,7 +87,7 @@ EventDispatcher.prototype = {
 
 	}
 
-};
+} );
 
 
 export { EventDispatcher };