From 93ddf57cc71f611cc3638b6c40e779c2f53ebdd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20TACHEAU?= Date: Tue, 6 Oct 2020 15:07:06 +0200 Subject: [PATCH] fix(use with next): fix the following bug : using the repo with next.js generate an error when code is execute on server side --- build/RAFManager.min.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/build/RAFManager.min.js b/build/RAFManager.min.js index 65aea5f..0df5091 100644 --- a/build/RAFManager.min.js +++ b/build/RAFManager.min.js @@ -6,5 +6,19 @@ * http://www.opensource.org/licenses/mit-license * */ -!function(t,i){"object"==typeof exports&&"undefined"!=typeof module?module.exports=i():"function"==typeof define&&define.amd?define(i):t.RAFManager=i()}(this,function(){"use strict";return function(){for(var t=["ms","moz","webkit","o"],i=0;i1&&void 0!==arguments[1]?arguments[1]:60,n={callback:t,fps:i,n:60/i,param:arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i:0};return this.animations.push(n),this.animations.length>=1&&this.start(),this},getIndex:function(t){for(var i=0;i=n.n&&(e(a),n.i=0)}}}}); +!function(t,i){"object"==typeof exports&&"undefined"!=typeof module? + module.exports=i() +: + "function"==typeof define&&define.amd? + define(i) + : + t.RAFManager=i() +}(this,function(){ + "use strict"; + return function(){ + if (typeof window !== 'undefined') { + for(var t=["ms","moz","webkit","o"],i=0;i1&&void 0!==arguments[1]?arguments[1]:60,n={callback:t,fps:i,n:60/i,param:arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i:0};return this.animations.push(n),this.animations.length>=1&&this.start(),this},getIndex:function(t){for(var i=0;i=n.n&&(e(a),n.i=0)}}}}); //# sourceMappingURL=RAFManager.min.js.map