From 06e7f88e11a2455273fc9da925ff52d336cf6f56 Mon Sep 17 00:00:00 2001 From: Benjamin Eidelman Date: Fri, 25 Jan 2013 17:51:52 -0300 Subject: [PATCH] fixing jshint warnings --- package.json | 2 +- src/jlivetime.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 1ab0d3a..346129e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jlivetime", - "version": "0.0.11", + "version": "0.0.12", "author": "Benjamin Eidelman ", "description": "jQuery plugin for live timestamps, countdowns, time-ago, and timers", "contributors": [ diff --git a/src/jlivetime.js b/src/jlivetime.js index a245c80..53888ea 100644 --- a/src/jlivetime.js +++ b/src/jlivetime.js @@ -6,7 +6,7 @@ (function($){ var lt = $.livetime = $.livetime || {}; - lt.version = '0.0.11'; + lt.version = '0.0.12'; lt.localTimeOffset = null; @@ -453,7 +453,7 @@ }; case 'h': return { - value: padLeft(date.getHours() > 12 ? date.getHours() - 12 : + value: padLeft(date.getHours() > 12 ? date.getHours() - 12 : (date.getHours() === 0 ? 12 : date.getHours()), match[2].length) }; case 'H': @@ -559,7 +559,7 @@ return { expression: format_expression, nextRefreshMs: nextRefreshMs - } + }; }; lt.format = function(ts, timeDiff, duration, format){