From ddc078a3bf7f03076c1b13dac103c03c567cd572 Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Sun, 27 Feb 2011 03:14:10 +0000 Subject: [PATCH 1/2] README: Added RequestAnimationFrame.js tip --- LICENSE | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LICENSE b/LICENSE index aa453f47..11964202 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License -Copyright (c) 2010-2011 Three.js Authors. All rights reserved. +Copyright (c) 2010-2011 three.js Authors. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 82546fc0..151212fc 100644 --- a/README.md +++ b/README.md @@ -117,7 +117,7 @@ This code creates a camera, then creates a scene object, adds a bunch of random function animate() { - requestAnimationFrame( animate ); + requestAnimationFrame( animate ); // Include examples/js/RequestAnimationFrame.js for cross-browser compatibility. render(); } From 339384f2090ecda3208beb9ebc9f3c0d92cbefa2 Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Sun, 27 Feb 2011 05:05:41 +0000 Subject: [PATCH 2/2] 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 ) {