Tweaked RequestAnimationFrame.js and Detector.js.

This commit is contained in:
Mr.doob
2011-02-27 05:05:41 +00:00
parent ddc078a3bf
commit 339384f209
3 changed files with 9 additions and 8 deletions
+2 -1
View File
@@ -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();
}
+6 -6
View File
@@ -26,12 +26,12 @@ Detector = {
var html = [
'Sorry, your browser doesn\'t support <a href="http://khronos.org/webgl/wiki/Getting_a_WebGL_Implementation">WebGL</a><br/>',
'<br/>',
'Please try with',
'<a href="http://www.google.com/chrome">Chrome 9+</a> /',
'<a href="http://www.mozilla.com/en-US/firefox/all-beta.html">Firefox 4+</a> /',
'<a href="http://nightly.webkit.org/">Safari OSX 10.6+</a>'
'Sorry, your browser doesn\'t support <a href="http://khronos.org/webgl/wiki/Getting_a_WebGL_Implementation">WebGL</a><br/>',
'<br/>',
'Please try with',
'<a href="http://www.google.com/chrome">Chrome 9+</a> /',
'<a href="http://www.mozilla.com/en-US/firefox/all-beta.html">Firefox 4+</a> /',
'<a href="http://nightly.webkit.org/">Safari 10.6+</a>'
].join("\n");
+1 -1
View File
@@ -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 ) {