Effects: Improve raf logic
commit708764f47b0c8de152bbb444d0f608db558b76ed
authorOleg Gaidarenko <markelog@gmail.com>
Mon, 12 May 2014 17:53:40 +0000 (12 21:53 +0400)
committerOleg Gaidarenko <markelog@gmail.com>
Sun, 15 Jun 2014 23:08:46 +0000 (16 03:08 +0400)
treed6a3087a0cb08e4fdd10502ea8ffb78a6d36015a
parent72119e0023dcc0d9807caf6d988598b74abdc937
Effects: Improve raf logic

* Make animation behave as if jQuery.fx.off = true if document is hidden

* Use cancelAnimationFrame in jQuery.fx.stop

Closes gh-1578
src/effects.js
test/unit/effects.js