Explorar o código

Merge pull request #1384 from rehmsen/mixin_optional

Make private HTMLCanvasElement compatible with the one in lib.d.ts
David Catuhe %!s(int64=9) %!d(string=hai) anos
pai
achega
b0d1621b5d
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      src/babylon.mixins.ts

+ 3 - 3
src/babylon.mixins.ts

@@ -48,9 +48,9 @@ interface Document {
 
 interface HTMLCanvasElement {
     requestPointerLock(): void;
-    msRequestPointerLock(): void;
-    mozRequestPointerLock(): void;
-    webkitRequestPointerLock(): void;
+    msRequestPointerLock?(): void;
+    mozRequestPointerLock?(): void;
+    webkitRequestPointerLock?(): void;
 }
 
 interface CanvasRenderingContext2D {