Fix 'requestAnimationFrame is not defined'

pull/427/head
Thibaut Courouble 9 years ago
parent 4b26951ff0
commit 012420c925

@ -279,7 +279,7 @@ $.classify = (string) ->
string.join('') string.join('')
$.framify = (fn, obj) -> $.framify = (fn, obj) ->
if requestAnimationFrame if window.requestAnimationFrame
(args...) -> requestAnimationFrame(fn.bind(obj, args...)) (args...) -> requestAnimationFrame(fn.bind(obj, args...))
else else
fn fn

Loading…
Cancel
Save