Mochabot log - CommonJS IRC channel: #commonjs on irc.freenode.net

2011-01-29:

[18:54] <TooMuchCaffeine> hello. i have a noob question. i have a sting passed in json object. and i want to call a function with the name same as content of that string. tried document[stringvar] window[stringvar]
[18:54] <TooMuchCaffeine> i checked typeof document[stringvar] and it's undefined.
[18:55] <TooMuchCaffeine> but function does exist and i can call it directly

 

 

Logs by date :