]> gerrit.simantics Code Review - simantics/district.git/blob - node_modules/config-chain/test/get.js
Hide "enabled" column for non-component type tech type tables
[simantics/district.git] / 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     });