From a60bd19e582e313e99e1f9658db8654d3c36a72e Mon Sep 17 00:00:00 2001 From: YNH Webdev Date: Sun, 23 Feb 2014 13:14:09 +0100 Subject: [PATCH] Fix state transition --- draft/library/wsf_js_widget/kernel/webcontrol/wsf_control.e | 3 +++ 1 file changed, 3 insertions(+) diff --git a/draft/library/wsf_js_widget/kernel/webcontrol/wsf_control.e b/draft/library/wsf_js_widget/kernel/webcontrol/wsf_control.e index 9caf4da9..667699c3 100644 --- a/draft/library/wsf_js_widget/kernel/webcontrol/wsf_control.e +++ b/draft/library/wsf_js_widget/kernel/webcontrol/wsf_control.e @@ -99,6 +99,9 @@ feature {WSF_PAGE_CONTROL, WSF_CONTROL} -- State management 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 do + if state_changes.count > 0 then + states.put (state_changes, control_name) + end if actions.count > 0 then if not attached states.item ("actions") then states.put (create {JSON_ARRAY}.make_array, "actions")