Hey, Im trying to convert specific javascript objects to a String. So far I\'m working with json2.js. As soon as my Object contain functions, those functions are stripped. I
functionName.toString() will return a string of all the function code. I cut is after the name.
var funcString = CurrentButton.clickFunc.toString(); console.log("calling:" + funcString.substr(0, funcString.indexOf(")")-1));