]> code.delx.au - gnu-emacs-elpa/commitdiff
Add animationFrame functions
authorBrian J Brennan <ext.bbrennan@riotgames.com>
Tue, 27 Jan 2015 22:05:38 +0000 (14:05 -0800)
committerBrian J Brennan <ext.bbrennan@riotgames.com>
Tue, 27 Jan 2015 22:05:38 +0000 (14:05 -0800)
This adds two functions to the browser externs list:

- `requestAnimationFrame`
- `cancelAnimationFrame`

See http://www.w3.org/TR/animation-timing/#requestAnimationFrame for
details.

js2-mode.el

index c332cfc1da6dc7553933e3a722da817d674c591e..d8e32f81e20082381738da55e22c75180bf1fac0 100644 (file)
 
             ;; Window
             window alert confirm document java navigator prompt screen
-            self top
+            self top requestAnimationFrame cancelAnimationFrame
 
             ;; W3C CSS
             CSSCharsetRule CSSFontFace CSSFontFaceRule