vendor/assets/javascripts/jquery.timeago.js in rails-timeago-2.12.0 vs vendor/assets/javascripts/jquery.timeago.js in rails-timeago-2.13.0
- 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.1
+ * @version 1.4.3
* @requires jQuery v1.2.3+
* @author Ryan McGeary
* @license MIT License - http://www.opensource.org/licenses/mit-license.php
*
* For usage and examples, visit:
@@ -16,9 +16,11 @@
(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
+ } else if (typeof module === 'object' && typeof module.exports === 'object') {
+ factory(require('jquery'));
} else {
// Browser globals
factory(jQuery);
}
}(function ($) {