When happened to the passed object?

44 views Asked by At

DISQUSWIDGETS.displayCount is called with a single argument {"text":{"and":"and","comments":{"zero":"0 Comments","multiple":"{num} Comments","one":"1 Comment"}},"counts":[]}:

enter image description here

But when inside DISQUSWIDGETS.displayCount the passed argument has value of Object {zero: "0 Comments", multiple: "{num} Comments", one: "1 Comment"}:

enter image description here

Using Google Chrome Version 39.0.2171.65 (64-bit)

Can anyone explain what is happening?

Because of this argument mangling comment count is not updated on my page.

1

There are 1 answers

1
easywaru On BEST ANSWER

I think the problem is below

a = a.text.comments;