diff --git a/javascripts/app.js b/javascripts/app.js index 93e99ab..ea5259c 100644 --- a/javascripts/app.js +++ b/javascripts/app.js @@ -70,7 +70,7 @@ function removeClass(element, name){ } function doFancyExpensiveTabThings(){ - var tabs = getElementsByClassName(document, "ul", "tabs"); + var tabs = (document.getElementsByClassName ? document.getElementsByClassName("tabs") : getElementsByClassName(document, "ul", "tabs")); for(var i = 0, j = tabs.length; i < j; i++){ var tabList = tabs[i].getElementsByTagName('li');