Merge pull request #183 from Nyholm/patch-1

Fixed bug with cutoff and allowFuture
This commit is contained in:
Ryan McGeary 2014-05-01 14:51:56 -04:00
commit dd17e5598f

View file

@ -179,7 +179,7 @@
var $s = $t.settings; var $s = $t.settings;
if (!isNaN(data.datetime)) { if (!isNaN(data.datetime)) {
if ( $s.cutoff == 0 || distance(data.datetime) < $s.cutoff) { if ( $s.cutoff == 0 || Math.abs(distance(data.datetime)) < $s.cutoff) {
$(this).text(inWords(data.datetime)); $(this).text(inWords(data.datetime));
} }
} }