Only callback if there is an event attached

This commit is contained in:
YNH Webdev
2013-08-28 15:57:16 +02:00
parent 4e09a15454
commit 595d0c501a
4 changed files with 12 additions and 4 deletions

View File

@@ -35,6 +35,7 @@ feature {WSF_PAGE_CONTROL, WSF_CONTROL} -- STATE MANAGEMENT
do
create Result.make
Result.put (create {JSON_STRING}.make_json (text), create {JSON_STRING}.make_json ("text"))
Result.put (create {JSON_BOOLEAN}.make_boolean (attached click_event), create {JSON_STRING}.make_json ("callback_click"))
end
feature --EVENT HANDLING