From 3750696f91205bcdf60a2162a4a12d6d57e3b559 Mon Sep 17 00:00:00 2001 From: Jason Mayes Date: Wed, 14 Jan 2015 10:41:54 +0000 Subject: [PATCH] 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. --- app/styleguide/third_party/rAF.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/styleguide/third_party/rAF.js b/app/styleguide/third_party/rAF.js index 9d43a83e..b2f7f9a0 100644 --- a/app/styleguide/third_party/rAF.js +++ b/app/styleguide/third_party/rAF.js @@ -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 ||