From: Ionică Bizău Date: Thu, 17 Sep 2015 09:24:12 +0000 (+0300) Subject: Fixed the mapNumbers require call X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=01ed2c4222bf77c2592dcd234d8c99a8636497cc;p=platform%2Fframework%2Fweb%2Fcrosswalk-tizen.git Fixed the mapNumbers require call Since mapNumber.js is a file, we should prefix it with "./", otherwise an error is thrown. --- diff --git a/docs/api/remote.md b/docs/api/remote.md index 1c5c831a1..55893c65f 100644 --- 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;