浏览代码

Merge pull request #1384 from rehmsen/mixin_optional

Make private HTMLCanvasElement compatible with the one in lib.d.ts
David Catuhe 9 年之前
父节点
当前提交
b0d1621b5d
共有 1 个文件被更改,包括 3 次插入3 次删除
  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 {