Fix bug where tabWord wouldn't change to singular

This commit is contained in:
Nick Krichevsky 2015-02-22 12:28:48 -05:00
parent d93d832309
commit b1b46f275e

View file

@ -192,6 +192,9 @@ function decrementTabCount(tabLi){
if (windows.tagName.toLowerCase()!='ul' || windows.id!="windows"){
throw "Not a tab li";
}
if (num===1){
li.querySelector('span.textContent>span.tabWord').textContent = " tab"
}
if (num===0){
windows.removeChild(li);
}