From 339384f2090ecda3208beb9ebc9f3c0d92cbefa2 Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Sun, 27 Feb 2011 05:05:41 +0000 Subject: [PATCH] Tweaked RequestAnimationFrame.js and Detector.js. --- README.md | 3 ++- examples/js/Detector.js | 12 ++++++------ examples/js/RequestAnimationFrame.js | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 151212fc..2dda33c1 100644 --- a/README.md +++ b/README.md @@ -117,7 +117,8 @@ This code creates a camera, then creates a scene object, adds a bunch of random function animate() { - requestAnimationFrame( animate ); // Include examples/js/RequestAnimationFrame.js for cross-browser compatibility. + // Include examples/js/RequestAnimationFrame.js for cross-browser compatibility. + requestAnimationFrame( animate ); render(); } diff --git a/examples/js/Detector.js b/examples/js/Detector.js index 0dc35f0c..55c10fa9 100644 --- a/examples/js/Detector.js +++ b/examples/js/Detector.js @@ -26,12 +26,12 @@ Detector = { var html = [ - 'Sorry, your browser doesn\'t support WebGL
', - '
', - 'Please try with', - 'Chrome 9+ /', - 'Firefox 4+ /', - 'Safari OSX 10.6+' + 'Sorry, your browser doesn\'t support WebGL
', + '
', + 'Please try with', + 'Chrome 9+ /', + 'Firefox 4+ /', + 'Safari 10.6+' ].join("\n"); diff --git a/examples/js/RequestAnimationFrame.js b/examples/js/RequestAnimationFrame.js index 30b309ae..5b29c56b 100644 --- a/examples/js/RequestAnimationFrame.js +++ b/examples/js/RequestAnimationFrame.js @@ -1,6 +1,6 @@ /** * Provides requestAnimationFrame in a cross browser way. - * @author paulirish / http://paulirish.com/ + * http://paulirish.com/2011/requestanimationframe-for-smart-animating/ */ if ( !window.requestAnimationFrame ) {