Moved the "use strict" statement inside function

A simple update moving used strict declaration inside the function to limit scope as this can cause chaos with 3rd party systems that are not written strictly.
master
Jason Mayes 2015-01-14 10:41:54 +00:00
parent 2fea83b313
commit 3750696f91
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/
// shim layer with setTimeout fallback
window.requestAnimFrame = (function() {
'use strict';
return window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||