Fix state transition

This commit is contained in:
YNH Webdev
2014-02-23 13:14:09 +01:00
parent 439e43fad9
commit a60bd19e58

View File

@@ -99,6 +99,9 @@ feature {WSF_PAGE_CONTROL, WSF_CONTROL} -- State management
read_state_changes (states: WSF_JSON_OBJECT) read_state_changes (states: WSF_JSON_OBJECT)
-- Add a new entry in the `states_changes` JSON object with the `control_name` as key and the `state` as value -- Add a new entry in the `states_changes` JSON object with the `control_name` as key and the `state` as value
do do
if state_changes.count > 0 then
states.put (state_changes, control_name)
end
if actions.count > 0 then if actions.count > 0 then
if not attached states.item ("actions") then if not attached states.item ("actions") then
states.put (create {JSON_ARRAY}.make_array, "actions") states.put (create {JSON_ARRAY}.make_array, "actions")