packages feed

ghcjs-base 0.8.0.3 → 0.8.0.4

raw patch · 3 files changed

+4/−4 lines, 3 files

Files

JavaScript/Web/AnimationFrame.hs view
@@ -69,7 +69,7 @@ foreign import javascript unsafe "h$animationFrameCancel"   js_cancelAnimationFrame :: AnimationFrameHandle -> IO () foreign import javascript interruptible-  "((x,c) => { return x.handle = window.requestAnimationFrame(c); })"+  "((x,c) => { return x.handle = requestAnimationFrame(c); })"   js_waitForAnimationFrame :: AnimationFrameHandle -> IO Double foreign import javascript unsafe "h$animationFrameRequest"   js_requestAnimationFrame :: AnimationFrameHandle -> IO ()
ghcjs-base.cabal view
@@ -1,6 +1,6 @@ cabal-version:       3.0 name:                ghcjs-base-version:             0.8.0.3+version:             0.8.0.4 synopsis:            base library for GHCJS homepage:            http://github.com/ghcjs/ghcjs-base license:             MIT
jsbits/animationFrame.js view
@@ -1,6 +1,6 @@ //#OPTIONS: CPP function h$animationFrameCancel(h) {-    if(h.handle) window.cancelAnimationFrame(h.handle);+    if(h.handle) cancelAnimationFrame(h.handle);     if(h.callback) {         h$release(h.callback)         h.callback = null;@@ -8,7 +8,7 @@ }  function h$animationFrameRequest(h) {-    h.handle = window.requestAnimationFrame(function(ts) {+    h.handle = requestAnimationFrame(function(ts) {         var cb = h.callback;         if(cb) { 	        h$release(cb);