Incorrect Documentation - Scripting Events


#1

https://dev.twitter.com/docs/tfw/events
Tried to access data as shown on the docs for a binded render event. Found out using Chrome Dev Tools that the structure has changed.

twttr.events.bind('rendered', function (event) {
  console.log("Created widget", event.data.target.id);
});

Should be:

twttr.events.bind('rendered', function (event) {
  console.log("Created widget", event.target.id);
});

No data in-between event & target.

Would appreciate it if docs were updated :slight_smile: Cheers.


#2

Updated. Thanks for the report and saving other developers’ time.


#3