Should have been left as "var tab = this.ensurePane(selections[i].Wuid, selections[i]);"