projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e30dd94
)
Fixed the mapNumbers require call
author
Ionică Bizău
<bizauionica@gmail.com>
Thu, 17 Sep 2015 09:24:12 +0000
(12:24 +0300)
committer
Ionică Bizău
<bizauionica@gmail.com>
Thu, 17 Sep 2015 09:24:12 +0000
(12:24 +0300)
Since mapNumber.js is a file, we should prefix it with "./", otherwise an error is thrown.
docs/api/remote.md
patch
|
blob
|
history
diff --git
a/docs/api/remote.md
b/docs/api/remote.md
index 1c5c831a1790a910730f03a8efb9e469505b1f29..55893c65f1c4e1803fbb97efbf339647136fc323 100644
(file)
--- a/
docs/api/remote.md
+++ b/
docs/api/remote.md
@@
-79,7
+79,7
@@
exports.withLocalCallback = function() {
```javascript
// renderer process
-var mapNumbers = require("remote").require("mapNumbers");
+var mapNumbers = require("remote").require("
./
mapNumbers");
var withRendererCb = mapNumbers.withRendererCallback(function(x) {
return x + 1;