vendor/assets/javascripts/ustyle/tabs.js in ustyle-1.16.2 vs vendor/assets/javascripts/ustyle/tabs.js in ustyle-1.19.2

- old
+ new

@@ -157,10 +157,10 @@ return !(tabNav.offsetWidth > 0 || tabNav.offsetHeight > 0); }; var getSelector = function(clicked) { - return clicked.getAttribute("data-target") || clicked.getAttribute("href"); + if(clicked) return clicked.getAttribute("data-target") || clicked.getAttribute("href"); }; return Tabs; })(this.Utils);