Method: Browser::AnimationFrame.supported?
- Defined in:
- opal/browser/animation_frame.rb
.supported? ⇒ Boolean
8 9 10 11 12 13 14 15 16 |
# File 'opal/browser/animation_frame.rb', line 8 def self.supported? ['Animation.request', 'Animation.request (Chrome)', 'Animation.request (Firefox)', 'Animation.request (Opera)', 'Animation.request (Internet Explorer)'].any? {|feature| Browser.supports? feature } end |