preact 0.6.3 → 0.6.4
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/preact.rb +3 -1
- data/lib/preact/version.rb +1 -1
- data/readme.md +0 -1
- metadata +1 -1
data/lib/preact.rb
CHANGED
|
@@ -58,7 +58,9 @@ module Preact
|
|
|
58
58
|
})
|
|
59
59
|
elsif event.is_a?(Hash)
|
|
60
60
|
preact_event = ActionEvent.new(event)
|
|
61
|
-
elsif
|
|
61
|
+
elsif event.is_a?(ActionEvent)
|
|
62
|
+
preact_event = event
|
|
63
|
+
else
|
|
62
64
|
raise StandardError.new "Unknown event class, must pass a string event name, event hash or ActionEvent object"
|
|
63
65
|
end
|
|
64
66
|
|
data/lib/preact/version.rb
CHANGED
data/readme.md
CHANGED