vendor/assets/javascripts/jquery.timeago.js in rails-timeago-2.10.1 vs vendor/assets/javascripts/jquery.timeago.js in rails-timeago-2.10.2

- old
+ new

@@ -1,11 +1,11 @@ /** * Timeago is a jQuery plugin that makes it easy to support automatically * updating fuzzy timestamps (e.g. "4 minutes ago" or "about 1 day ago"). * * @name timeago - * @version 1.4.0 + * @version 1.4.1 * @requires jQuery v1.2.3+ * @author Ryan McGeary * @license MIT License - http://www.opensource.org/licenses/mit-license.php * * For usage and examples, visit: @@ -180,10 +180,10 @@ function refresh() { var data = prepareData(this); var $s = $t.settings; 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).attr('lang')) ? $(this).attr('lang') : $t.settings.lang)); } } return this; }