X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=docs%2Fcontent%2Fshared-javascript-and-cpp-documentation%2Fjavascript-wrapping-guide.md;h=b2eef34ddf7bd320207aca4ab000c4ca26e75430;hb=fe706c2b9e0a2ce31c91317dd6749faecef6d92e;hp=287c8cfc673ddaa6a9a6c0fb7ad802a7933d64b9;hpb=2071317d301e9d5af326a3a2efcd2996263fbead;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/docs/content/shared-javascript-and-cpp-documentation/javascript-wrapping-guide.md b/docs/content/shared-javascript-and-cpp-documentation/javascript-wrapping-guide.md index 287c8cf..b2eef34 100644 --- a/docs/content/shared-javascript-and-cpp-documentation/javascript-wrapping-guide.md +++ b/docs/content/shared-javascript-and-cpp-documentation/javascript-wrapping-guide.md @@ -1,5 +1,6 @@ -/** - * + + # JavaScript wrapping guide {#javascriptwrapping} This guide outlines what files to modify when the DALi C++ public API changes. @@ -27,7 +28,7 @@ The current file / folder structure is as follows: ### New property has been added - No code change required. -- It will be automatically avalable using the dot notation. E.g. actor.my_new_property = true; +- It will be automatically available using the dot notation. E.g. actor.my_new_property = true; ### New property type has been added - modify property-value-wrapper.h / .cpp to support the new type @@ -35,7 +36,7 @@ The current file / folder structure is as follows: ### New function added to an object - Add the function name to function table in my-object-wrapper.cpp - Add the forwarding function to my-object-api.cpp/.h -- Ensure you have created YUIDOC documention above the function +- Ensure you have created YUIDOC documentation above the function ![ ](../assets/img/javascript-wrapping-guide/adding-function.png) ![ ](adding-function.png) @@ -67,7 +68,7 @@ var light = new dali.Light(); If Light inherits from Handle then use path-wrapper and path-api as a template to create light-wrapper and light-api ( inherits from HandleWrapper) -Otherwise use animation-wrapper and animation-api as a template ( inherts from BaseWrappedObject) +Otherwise use animation-wrapper and animation-api as a template ( inherits from BaseWrappedObject) @@ -104,10 +105,11 @@ v8 will detect myActor is a wrapped object, and call getId() on that wrapped obj The wrapped object, then forwards the command to the real DALi object. Whenever we want to access functions / properties of that wrapped object, we unwrap it -to get access to the Dali object. +to get access to the DALi object. -Each wrapped object registers with Dali garbage collector so they can be deleted -when Dali shuts down +Each wrapped object registers with DALi garbage collector so they can be deleted +when DALi shuts down @class _Guide_JavaScript_Wrapping -*/ \ No newline at end of file + +*/