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('')
$.framify = (fn, obj) ->
if requestAnimationFrame
if window.requestAnimationFrame
(args...) -> requestAnimationFrame(fn.bind(obj, args...))
else
fn

Loading…
Cancel
Save