Selaa lähdekoodia

Merge pull request #7100 from Pryme8/unRegisterView-Fix

Update engine.views.ts
David Catuhe 5 vuotta sitten
vanhempi
commit
ff726c7dc6
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/Engines/Extensions/engine.views.ts

+ 1 - 1
src/Engines/Extensions/engine.views.ts

@@ -81,7 +81,7 @@ Engine.prototype.unRegisterView = function(canvas: HTMLCanvasElement): Engine {
     }
 
     for (var view of this.views) {
-        if (view.target = canvas) {
+        if (view.target === canvas) {
             let index = this.views.indexOf(view);
 
             if (index !== -1) {