Raanan Weber 5 lat temu
rodzic
commit
430e842d45
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      src/Misc/tools.ts

+ 6 - 0
src/Misc/tools.ts

@@ -742,6 +742,12 @@ export class Tools {
         window.URL.revokeObjectURL(url);
         window.URL.revokeObjectURL(url);
     }
     }
 
 
+    /**
+     * Will return the right value of the noPreventDefault variable
+     * Needed to keep backwards compatibility to the old API.
+     *
+     * @param args arguments passed to the attachControl function
+     */
     public static BackCompatCameraNoPreventDefault(args: IArguments): boolean {
     public static BackCompatCameraNoPreventDefault(args: IArguments): boolean {
         // is it used correctly?
         // is it used correctly?
         if (typeof args[0] === "boolean") {
         if (typeof args[0] === "boolean") {