From 25909c040623a2abc7cafafa770c992352eac28f Mon Sep 17 00:00:00 2001 From: Remy Sharp Date: Wed, 20 Jan 2010 09:02:23 +0000 Subject: [PATCH] Removed comments --- js/chrome/app.js | 9 ++++----- js/chrome/navigation.js | 35 +---------------------------------- 2 files changed, 5 insertions(+), 39 deletions(-) diff --git a/js/chrome/app.js b/js/chrome/app.js index e0bdd014..51e7ead9 100644 --- a/js/chrome/app.js +++ b/js/chrome/app.js @@ -19,10 +19,7 @@ var debug = false, // if the user linked directly to #html, initially hide the JS panel if (window.location.hash == '#html') { document.getElementById('bin').className += ' html-only'; -} // else if (window.location.hash == '#output' || window.location.hash == '#preview') { -// document.body.className = 'preview'; -// } - +} $(window).unload(unload); @@ -53,7 +50,9 @@ if (/gist\/\d+/.test(window.location.pathname) && (!sessionStorage.getItem('java } $(document).bind('codeChange', function (event, revert) { - if (revert == undefined) revert = false; + if (revert == undefined) { + revert = false; + } if (!revert && !/\*$/.test(document.title)) { if (/debug/i.test(document.title)) { diff --git a/js/chrome/navigation.js b/js/chrome/navigation.js index 77f8a809..32901087 100644 --- a/js/chrome/navigation.js +++ b/js/chrome/navigation.js @@ -45,32 +45,6 @@ $('#control .button').click(function (event) { } }); -// $('#control div.help a.video').click(function (event) { -// event.preventDefault(); -// var useAjax = false, -// url = $(this).attr('href'); // using href to ensure the url doesn't resolve -// -// if (url.substr(0, 1) == '#') { -// url = this.hash; // id based -// } else { -// useAjax = true; -// } -// -// if (useAjax) { -// $.ajax({ -// url: url, -// dataType: 'html', -// error: function () { -// // console.log(arguments); -// }, -// complete: function (res) { -// var content = $('
').append(res.responseText.replace(//g, "")).find('#content').html(); -// var lightbox = new Lightbox(content, 100).show(); -// } -// }); -// } -// }); - $('#control div.help a:last').click(function () { $(window).trigger('togglehelp'); return false; @@ -100,11 +74,4 @@ $(document).keyup(function (event) { if (helpOpen && event.keyCode == 27) { $(window).trigger('togglehelp'); } -}); - - - - - - - +}); \ No newline at end of file