Skip to content

Commit 5610269

Browse files
committed
make directly call support options
1 parent ac9f982 commit 5610269

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jquery.timeago.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
factory(jQuery);
2424
}
2525
}(function ($) {
26-
$.timeago = function(timestamp) {
26+
$.timeago = function(timestamp, options) {
27+
$.extend( $.timeago.settings, options );
2728
if (timestamp instanceof Date) {
2829
return inWords(timestamp);
2930
} else if (typeof timestamp === "string") {

0 commit comments

Comments
 (0)