bowser 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/bowser/version.rb +1 -1
- data/opal/bowser/delegate_native.rb +7 -1
- data/opal/bowser/window.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99863c5a834f54c9060f9f08b39a742ca397a978da8db9c3306ebe6ffc033d09
|
4
|
+
data.tar.gz: 61043cb4797a1c767ff8bb7863d2d9d2935574785b812858df0df0dea0960533
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '01207861e030df2d7491dab9a9b9960be85cb9e89ed39cf11105a2723d33e613430f59341312af156d617e73defdfae9637fac900db08bce7167bf17bf43c979'
|
7
|
+
data.tar.gz: cf388f7b6623b65cff61c06dd10dddcbddc195ec689208489b1a30284076e9f84e9fb8821e9eb76df35217a1c72d6f3210571a8917b984fb152e142be3fbd786
|
data/lib/bowser/version.rb
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
module Bowser
|
2
2
|
module DelegateNative
|
3
|
+
# Provides a default initializer. This should be overridden in all but the
|
4
|
+
# simplest cases.
|
5
|
+
def initialize native
|
6
|
+
@native = native
|
7
|
+
end
|
8
|
+
|
3
9
|
# Fall back to native properties. If the message sent to this element is not
|
4
10
|
# recognized, it checks to see if it is a property of the native element. It
|
5
11
|
# also checks for variations of the message name, such as:
|
@@ -19,7 +25,7 @@ module Bowser
|
|
19
25
|
end
|
20
26
|
|
21
27
|
# If the native element doesn't have this property, bubble it up
|
22
|
-
super
|
28
|
+
super unless `#{property_name} in #@native`
|
23
29
|
|
24
30
|
if `property === false`
|
25
31
|
return false
|
data/opal/bowser/window.rb
CHANGED
@@ -15,7 +15,7 @@ module Bowser
|
|
15
15
|
# is called from another `animation_frame` call, the block is run in the
|
16
16
|
# following iteration of the event loop.
|
17
17
|
def animation_frame &block
|
18
|
-
`requestAnimationFrame(function() { #{block.call} })`
|
18
|
+
`requestAnimationFrame(function(now) { #{block.call `now`} })`
|
19
19
|
self
|
20
20
|
end
|
21
21
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bowser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jamie Gaskins
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opal
|
@@ -138,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
138
|
version: '0'
|
139
139
|
requirements: []
|
140
140
|
rubyforge_project:
|
141
|
-
rubygems_version: 2.7.
|
141
|
+
rubygems_version: 2.7.3
|
142
142
|
signing_key:
|
143
143
|
specification_version: 4
|
144
144
|
summary: Minimalist browser support for Opal apps
|