]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/node_modules/config-chain/test/get.js
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / node_modules / config-chain / test / get.js
1 var cc = require("../");
2
3 var chain = cc()
4     , name = "forFun";
5
6 chain
7     .add({
8         __sample:"for fun only"
9     }, name)
10     .on("load", function() {
11         //It throw exception here
12         console.log(chain.get("__sample", name));
13         //But if I drop the name param, it run normally and return as expected: "for fun only"
14         //console.log(chain.get("__sample"));
15     });