add: if (console.prefs["source2View.alertMaxTabs"]) { var rv = alertCheck(getMsg(MSN_MAXTABS_REACHED, maxSourceTabs), MSG_MAXTABS_ALERT, true); console.prefs["source2View.alertMaxTabs"] = rv; } } 
context: function s2v_addsource (sourceText){    var index = this.getIndexOfSourceText (sourceText);    if (index != -1)    {        this.showTab(index);        return this.sourceTabList[index];    }        if (this.sourceTabList.length < console.prefs["source2View.maxTabs"])        index = this.sourceTabList.length;    else        index = 0;    return this.loadSourceTextAtIndex (sourceText, index);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/9a673c26b7e25c0a6826007f51ed88c0b3e911d4/venkman-views.js/buggy/extensions/venkman/resources/content/venkman-views.js