vapir-common 1.7.1 → 1.7.2
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.
- data/lib/vapir-common.rb +1 -1
- data/lib/vapir-common/element.rb +1 -1
- data/lib/vapir-common/elements/elements.rb +5 -5
- metadata +7 -3
data/lib/vapir-common.rb
CHANGED
data/lib/vapir-common/element.rb
CHANGED
@@ -446,10 +446,10 @@ module Vapir
|
|
446
446
|
assert_enabled
|
447
447
|
if checked!=state
|
448
448
|
element_object.checked=state
|
449
|
-
fire_event(:onchange, options)
|
449
|
+
handling_existence_failure { fire_event(:onchange, options) } # we may stop existing due to change in state
|
450
450
|
end
|
451
|
-
if state
|
452
|
-
fire_event(:onclick, options) # fire this even if the state doesn't change; javascript can respond to clicking an already-checked radio.
|
451
|
+
if state
|
452
|
+
handling_existence_failure { fire_event(:onclick, options) } # fire this even if the state doesn't change; javascript can respond to clicking an already-checked radio.
|
453
453
|
end
|
454
454
|
wait if options[:wait]
|
455
455
|
end
|
@@ -483,8 +483,8 @@ module Vapir
|
|
483
483
|
# todo/fix: this is browser-specific stuff, shouldn't it be in the browser-specific class?
|
484
484
|
element_object.checked=state
|
485
485
|
end
|
486
|
-
fire_event(:onclick, options)
|
487
|
-
fire_event(:onchange, options)
|
486
|
+
handling_existence_failure { fire_event(:onclick, options) } # sometimes previous actions can cause self to stop existing
|
487
|
+
handling_existence_failure { fire_event(:onchange, options) }
|
488
488
|
end
|
489
489
|
wait if options[:wait]
|
490
490
|
end
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vapir-common
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 15
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 1
|
7
8
|
- 7
|
8
|
-
-
|
9
|
-
version: 1.7.
|
9
|
+
- 2
|
10
|
+
version: 1.7.2
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Ethan
|
@@ -14,7 +15,7 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date:
|
18
|
+
date: 2011-01-13 00:00:00 -05:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
@@ -25,6 +26,7 @@ dependencies:
|
|
25
26
|
requirements:
|
26
27
|
- - ">="
|
27
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
28
30
|
segments:
|
29
31
|
- 0
|
30
32
|
version: "0"
|
@@ -80,6 +82,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
80
82
|
requirements:
|
81
83
|
- - ">="
|
82
84
|
- !ruby/object:Gem::Version
|
85
|
+
hash: 3
|
83
86
|
segments:
|
84
87
|
- 0
|
85
88
|
version: "0"
|
@@ -88,6 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
91
|
requirements:
|
89
92
|
- - ">="
|
90
93
|
- !ruby/object:Gem::Version
|
94
|
+
hash: 3
|
91
95
|
segments:
|
92
96
|
- 0
|
93
97
|
version: "0"
|