Band-aid for NS_ERROR_DOM_SECURITY_ERR toggle issue.

Attempt to catch an exception in tracking code that may be interfering with toggle buttons for some Firefox users.
This commit is contained in:
Max Goodman
2012-08-03 11:40:43 -07:00
committed by Neil Williams
parent 1cbd9d0995
commit 4a6d1ab69f

View File

@@ -225,9 +225,13 @@ r.analytics.breadcrumbs = {
},
storeLastClick: function(el) {
this.data[0]['click'] =
r.utils.querySelectorFromEl(el, this.selector)
this.store()
try {
this.data[0]['click'] =
r.utils.querySelectorFromEl(el, this.selector)
this.store()
} catch (e) {
// Band-aid for Firefox NS_ERROR_DOM_SECURITY_ERR until fixed.
}
},
toParams: function() {