diff --git a/README.md b/README.md index 6819833..4dba3b6 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,10 @@ TO DO: Version Changes Control ======================= +v0.0.9 - 2020-03-08 +------------------------ +- Correction of event node so code is into code node. + v0.0.8 - 2020-03-08 ------------------------ - Correction of all the Types of containers and elements to put correct js library name (nameContainer and nameElement syntax) diff --git a/event.go b/event.go index 506f768..f445c0f 100644 --- a/event.go +++ b/event.go @@ -2,10 +2,12 @@ package wajaf type Event NodeDef -func NewEvent(name string, value string) Event { +func NewEvent(etype string, code string) Event { - e := NewNode("event", name) - e.SetData(value) + e := NewNode("event", etype) + c := NewNode("code", "") + c.SetData(code) + e.AddChild(c) return e } diff --git a/wajaf.go b/wajaf.go index 624776c..d9c58eb 100644 --- a/wajaf.go +++ b/wajaf.go @@ -7,7 +7,7 @@ package wajaf // VERSION is the used version nombre of the XCore library. -const VERSION = "0.0.8" +const VERSION = "0.0.9" // LOG is the flag to activate logging on the library. // if LOG is set to TRUE, LOG indicates to the XCore libraries to log a trace of functions called, with most important parameters.