Merge pull request #598 from jasonmayes/material-sprint

Moved the "use strict" statement inside function
master
Sindre Sorhus 2015-01-14 18:45:34 +08:00
commit 16ffea3653
1 changed files with 1 additions and 2 deletions

View File

@ -1,8 +1,7 @@
'use strict';
// From: http://www.paulirish.com/2011/requestanimationframe-for-smart-animating/ // From: http://www.paulirish.com/2011/requestanimationframe-for-smart-animating/
// shim layer with setTimeout fallback // shim layer with setTimeout fallback
window.requestAnimFrame = (function() { window.requestAnimFrame = (function() {
'use strict';
return window.requestAnimationFrame || return window.requestAnimationFrame ||
window.webkitRequestAnimationFrame || window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame || window.mozRequestAnimationFrame ||