]> gerrit.simantics Code Review - simantics/district.git/blob - get.js
d6fd79f74bbed793dace2e61e839fb1fb0f94080
[simantics/district.git] / 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     });