Ver Fonte

added toString methods

Gildas há 7 anos atrás
pai
commit
de5ab98a6a
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      lib/hooks/hooks-frame.js

+ 2 - 0
lib/hooks/hooks-frame.js

@@ -152,6 +152,7 @@ this.hooksFrame = this.hooksFrame || (() => {
 				return id;
 				return id;
 			}
 			}
 		};
 		};
+		window.requestAnimationFrame.toString = function () { return "requestAnimationFrame() { [native code] }"; };
 
 
 		window.cancelAnimationFrame = function (id) {
 		window.cancelAnimationFrame = function (id) {
 			pendingRequestAnimationFrameCalls.delete(id);
 			pendingRequestAnimationFrameCalls.delete(id);
@@ -161,6 +162,7 @@ this.hooksFrame = this.hooksFrame || (() => {
 				return cancelAnimationFrame(id);
 				return cancelAnimationFrame(id);
 			}
 			}
 		};
 		};
+		window.cancelAnimationFrame.toString = function () { return "cancelAnimationFrame() { [native code] }"; };
 
 
 		const FontFace = window.FontFace;
 		const FontFace = window.FontFace;
 		let warningFontFaceDisplayed;
 		let warningFontFaceDisplayed;