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
parent
2fea83b313
commit
3750696f91
|
@ -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 ||
|
||||
|
|
Loading…
Reference in New Issue