MCPcopy
hub / github.com/jabbany/CommentCoreLibrary / bindWindow

Function bindWindow

demo/debugger.js:417–443  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

415}
416
417function bindWindow() {
418 for (var w in windowbinds) {
419 $(w).addEventListener("click", function(e) {
420 if (state.cw === this.id)
421 return;
422 if (window.isDebugRunning()) {
423
424 }
425 state.cw = this.id;
426 for (var win in windowbinds) {
427 $(win).className = "button";
428 if ($(windowbinds[win].id) && !windowbinds[win].opacityOnly) {
429 $(windowbinds[win].id).style.display = "none";
430 } else if ($(windowbinds[win].id) && windowbinds[win].opacityOnly) {
431 $(windowbinds[win].id).style.opacity = "0";
432 }
433 }
434 this.className = "button active";
435 try {
436 $(windowbinds[this.id].id).style.display = "";
437 $(windowbinds[this.id].id).style.opacity = "1";
438 } catch (e) {
439 console.log(e);
440 }
441 });
442 }
443};
444
445function bindTests() {
446 for (var test in tests) {

Callers 1

debugger.jsFile · 0.85

Calls 3

logMethod · 0.80
addEventListenerMethod · 0.65
$Function · 0.50

Tested by

no test coverage detected