projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[dali_1.1.35] Merge branch 'devel/master'
[platform/core/uifw/dali-toolkit.git]
/
plugins
/
dali-script-v8
/
src
/
module-loader
/
module-loader.cpp
diff --git
a/plugins/dali-script-v8/src/module-loader/module-loader.cpp
b/plugins/dali-script-v8/src/module-loader/module-loader.cpp
index
6623374
..
9255574
100644
(file)
--- a/
plugins/dali-script-v8/src/module-loader/module-loader.cpp
+++ b/
plugins/dali-script-v8/src/module-loader/module-loader.cpp
@@
-18,6
+18,9
@@
// CLASS HEADER
#include "module-loader.h"
// CLASS HEADER
#include "module-loader.h"
+// EXTERNAL INCLUDES
+#include <dali/public-api/common/vector-wrapper.h>
+
// INTERNAL INCLUDES
#include <v8-utils.h>
// INTERNAL INCLUDES
#include <v8-utils.h>
@@
-173,23
+176,24
@@
bool ModuleLoader::ExecuteScriptFromFile( v8::Isolate* isolate,
* #### Exporting as a constructor
*
*
* #### Exporting as a constructor
*
*
- * // Image
Actor
.js
- * function Image
Actor
( position, orientation, image, name )
+ * // Image
View
.js
+ * function Image
View
( position, orientation, image, name )
* {
* {
- * this = new dali.ImageActor( image );
+ * this = new dali.Control("ImageView");
+ * this.image = image;
* this.position = position;
* this.orientation = orientation;
* this.name = name;
* }
* this.position = position;
* this.orientation = orientation;
* this.name = name;
* }
- * module.exports = Image
Actor
;
+ * module.exports = Image
View
;
*
* <br />
*
* // main.js
*
*
* <br />
*
* // main.js
*
- * var Image
Actor = require(" ImageActor
.js");
+ * var Image
View = require(" ImageView
.js");
*
*
- * var image
Actor = new ImageActor
( position, orientation, image, "my first image actor");
+ * var image
View = new ImageView
( position, orientation, image, "my first image actor");
*
* #### Exporting as a singleton
*
*
* #### Exporting as a singleton
*