by
184 7
0
4
2,344
1
Top 1% !
Popular
Famous
Specified
Popularity: 7528th place
This snippet is Public
No tags for this snippet yet.
LanguageCoffeeScript
LicenseMIT_X11
SourceGitHub
SourceMyGists

NgAnimate Mock in CoffeeScript

NgAnimate Mock in CoffeeScript: 
angular-animate-mock.coffee
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/151116/NgAnimate-Mock-in-CoffeeScript?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
# Converted JS from http://mgcrea.github.io/angular-strap angular.module('ngAnimate', []) .factory('$$animateReflow', ['$window', '$timeout', ($window, $timeout) -> requestAnimationFrame = $window.requestAnimationFrame || $window.webkitRequestAnimationFrame || (fn) -> $timeout(fn, 10, false) cancelAnimationFrame = $window.cancelAnimationFrame || $window.webkitCancelAnimationFrame || (timer) -> $timeout.cancel(timer) (fn) -> id = requestAnimationFrame(fn) () -> cancelAnimationFrame(id) ])
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus