Hi, Yahel a good question,
It should work if you call this:
twttr.events.trigger("click", {});
It expects a second parameter, which is an object that returns back to your callback. When this happens naturally, this object is filled with other parameters
{target: b,region: "intent",type: "click",data: {}}
If you pass an empty object, as I suggested, it will work, but in your callback you only get the object with the type property, as this is added by the trigger.
And that was exactly the error you caused when you did not pass the second parameter. It tries to add the type parameter to undefined and then dies.
source share