From 61f508311a2a804d5ba62cb26863d02d65c21af1 Mon Sep 17 00:00:00 2001 From: Kumar McMillan Date: Wed, 25 May 2011 18:01:51 -0500 Subject: [PATCH] Minor code cleanup --- media/js/zamboni/validator.js | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/media/js/zamboni/validator.js b/media/js/zamboni/validator.js index 8a8cfc0a29..af79038a76 100644 --- a/media/js/zamboni/validator.js +++ b/media/js/zamboni/validator.js @@ -43,7 +43,6 @@ function initValidator() { } this.$tierResults = $('.tier-results', this.$dom); this.wakeUp(); - // this.$results.append($tier); } ResultsTier.prototype.tallyMsgType = function(type_) { @@ -110,8 +109,6 @@ function initValidator() { $('.tier-results', this.$dom).empty(); this.$dom.removeClass('hidden'); this.$dom.show(); - // this.$dom.css('display', 'display'); - // this.$dom.css('visibility', 'visible'); if (this.app) { // Override the title with a special app/version title $title.text(format('{0} {1} {2}', @@ -223,8 +220,7 @@ function initValidator() { if (typeof(ctxFile) === 'string') { ctxFile = [ctxFile]; } - // e.g. ["silvermelxt_1.3.5.xpi", - // "chrome/silvermelxt.jar"] + // e.g. ["silvermelxt_1.3.5.xpi", "chrome/silvermelxt.jar"] ctxFile = joinPaths(ctxFile); ctxDiv = $(format('
' + '
{0}
', [ctxFile])); @@ -236,10 +232,8 @@ function initValidator() { code.append(innerCode); msg.context = formatCodeIndentation(msg.context); $.each(msg.context, function(n, c) { - lines.append( - $(format('
{0}
', [msg.line + n]))); - innerCode.append( - $(format('
{0}
', [c]))); + lines.append($(format('
{0}
', [msg.line + n]))); + innerCode.append($(format('
{0}
', [c]))); }); ctxDiv.append(code); } @@ -322,11 +316,9 @@ function initValidator() { function resultSummary(numErrors, numWarnings) { // e.g. '1 error, 3 warnings' - var errors = format(ngettext('{0} error', '{0} errors', - numErrors), + var errors = format(ngettext('{0} error', '{0} errors', numErrors), [numErrors]), - warnings = format(ngettext('{0} warning', '{0} warnings', - numWarnings), + warnings = format(ngettext('{0} warning', '{0} warnings', numWarnings), [numWarnings]); return format('{0}, {1}', errors, warnings); }