Browse Source

Merge pull request #1384 from rehmsen/mixin_optional

Make private HTMLCanvasElement compatible with the one in lib.d.ts
David Catuhe 9 years ago
parent
commit
b0d1621b5d
1 changed files with 3 additions and 3 deletions
  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 {