mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
391 B
16 lines
391 B
12 years ago
|
var cc = require("../");
|
||
|
|
||
|
var chain = cc()
|
||
|
, name = "forFun";
|
||
|
|
||
|
chain
|
||
|
.add({
|
||
|
__sample:"for fun only"
|
||
|
}, name)
|
||
|
.on("load", function() {
|
||
|
//It throw exception here
|
||
|
console.log(chain.get("__sample", name));
|
||
|
//But if I drop the name param, it run normally and return as expected: "for fun only"
|
||
|
//console.log(chain.get("__sample"));
|
||
|
});
|