guardian/frontend — pull request #2364 by chrisfinch (2013-11-22 17:05:41+00:00)
Title: Clickstream.js type error

Clickstream.js gives a type error if, on recursion through the DOM, it doesn't find a 'data-link-name' attribute and doesn't create the `tag` property on the `spec` object at line 53.

This adds an extra check to make sure that a type error is not generated further down the line.

This bug was picked up from seeing the error generated when the comment form is submitted on NextGen.

I'm not involved with clickstream.js and found the source of the error through debugging so if someone knows how it works please check this to make sure it doesn't break anything.

Thanks!