MCPcopy
hub / github.com/requirejs/requirejs / _showTab

Function _showTab

tests/doh/_browserRunner.js:615–631  ·  view source on GitHub ↗
(toShow, toHide)

Source from the content-addressed store, hash-verified

613 // var isSafari = navigator.appVersion.indexOf("Safari") >= 0;
614 var tabzidx = 1;
615 var _showTab = function(toShow, toHide){
616 // FIXME: I don't like hiding things this way.
617 var i;
618 for(i = 0; i < toHide.length; i++){
619 var node = byId(toHide[i]);
620 if(node){
621 node.style.display="none";
622 }
623 }
624 toShow = byId(toShow);
625 if(toShow){
626 with(toShow.style){
627 display = "";
628 zIndex = ++tabzidx;
629 }
630 }
631 }
632
633 doh.showTestPage = function(){
634 _showTab("testBody", ["logBody", "perfTestsBody"]);

Callers 1

_browserRunner.jsFile · 0.85

Calls 1

byIdFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…