Sha256: 943da63f8d18d231ea84afed7cf97585faed51e1cde23bed088cb4b4b595a66c

Contents?: true

Size: 828 Bytes

Versions: 4

Compression:

Stored size: 828 Bytes

Contents

/*! jQuery requestAnimationFrame - v0.1.3pre - 2014-02-07
 * https://github.com/gnarf37/jquery-requestAnimationFrame
 * Copyright (c) 2014 Corey Frang; Licensed MIT */
(function(e){function o(){t&&(i(o),e.fx.tick())}var t,n=0,r=["webkit","moz"],i=window.requestAnimationFrame,s=window.cancelAnimationFrame;for(;n<r.length&&!i;n++)i=window[r[n]+"RequestAnimationFrame"],s=s||window[r[n]+"CancelAnimationFrame"]||window[r[n]+"CancelRequestAnimationFrame"];i?(window.requestAnimationFrame=i,window.cancelAnimationFrame=s,e.fx.timer=function(n){n()&&e.timers.push(n)&&!t&&(t=!0,o())},e.fx.stop=function(){t=!1}):(window.requestAnimationFrame=function(e,t){var r=(new Date).getTime(),i=Math.max(0,16-(r-n)),s=window.setTimeout(function(){e(r+i)},i);return n=r+i,s},window.cancelAnimationFrame=function(e){clearTimeout(e)})})(jQuery);

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
scrolltojs-rails-0.0.5 vendor/assets/javascripts/con_theme/requestAnimationFrame.min.js
scrolltojs-rails-0.0.4 vendor/assets/javascripts/con_theme/requestAnimationFrame.min.js
base_logic_theme-0.1.2 vendor/assets/javascripts/requestAnimationFrame.min.js
base_logic_theme-0.1.1 vendor/assets/javascripts/requestAnimationFrame.min.js