Testing using tab cache array for quicker lookups

This commit is contained in:
dpedu 2015-02-18 09:29:56 -08:00
parent aa348f150a
commit 90de3a100d
1 changed files with 3 additions and 5 deletions

View File

@ -64,6 +64,9 @@ _tabbro_ = function() {
}
this.t_getTab = function(tabid) {
if(this.tabs_by_id[tabid]) {
return this.tabs_by_id[tabid]
}
for(var w in this.tree) {
for(var t in this.tree[w].tabs) {
if(this.tree[w].tabs[t].id==tabid) {
@ -73,11 +76,6 @@ _tabbro_ = function() {
}
}
this.t_windowHasTab = function(winid, tabid) {
// Determine if the specified window by id contains tab specified by tabid
// TODO
}
this.t_addTabtoWindow = function(winid, tabinfo, index) {
// Add a tab record to a window specified by winid
var win = this.t_getWindow(winid)