Browse Source

Simpler RequestAnimationFrame.js

Mr.doob 14 năm trước cách đây
mục cha
commit
405b72c200
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      examples/js/RequestAnimationFrame.js

+ 1 - 2
examples/js/RequestAnimationFrame.js

@@ -7,8 +7,7 @@ if ( !window.requestAnimationFrame ) {
 
 	window.requestAnimationFrame = ( function() {
 
-		return window.requestAnimationFrame ||
-		window.webkitRequestAnimationFrame ||
+		return window.webkitRequestAnimationFrame ||
 		window.mozRequestAnimationFrame ||
 		window.oRequestAnimationFrame ||
 		window.msRequestAnimationFrame ||