Permalink
Commits on Sep 20, 2010
  1. performance-tweaks, multiple languages (strings), time deviance

    sorry for moving everything around and thereby obfuscating the actual changes…
    
    1) allow multiple languages per instance. any matching element can select its preferred strings-set via a class (e.g. timeago-language-since). #enhancement
    2) avoid multiple timeouts for automatic refreshes  #memleak
    3) allow for a time-deviance (read: server/client diff, for misconfigured clients) #enhancement
    4) avoid function-in-function-declaration #memleak
    5) move all functions to $.timeago, since there's no actual need for those "privates" #beingcrazyandall
    6) added support for $.timeago( Number ) #enhancement
    7) the parser's /\.\d\d\d+/ should be /\.\d{3,}/ #beingcrazyandall
    
    ===== some notes on (1) =====
    In a few places I needed to print "since blalba" instead of "blabla ago". Setup:
    $.timeago.settings.strings.foobar = $.extend( {}, $.timeago.settings.strings, { prefixAgo: 'since', suffixAgo: '' } );
    <span class="timeago timeago-language-foobar"></span> and $.timeago( new Date(), 'foobar' ) will print the former, <span class="timeago"></span> and $.timeago( new Date() ) the latter.
    
    ===== some notes on (2) =====
    On heavy AJAX pages (read: not single-page-calls) those accumulated intervals (running for nothing, if the original nodes have been removed already) consume resources for nothing.
    
    ===== some notes on (3) =====
    Many users (mostly featuring old OS without NTP) don't even notice their wrong time settings and will tell you that your website is broken. To circumvent this, my servers output the current time, so the client can calculate its offset:
    
    $.timeago.settings.deviance = (new Date()).getTime() - $.timeago.parse( comingFromTheServer ).getTime();
    // depending on the loading time of the page there WILL be a difference. make the safety-threshold a minute
    if( $.timeago.settings.deviance > 0 && $.timeago.settings.deviance < 60000 )
      $.timeago.settings.deviance = 0;
    committed Sep 20, 2010
Commits on Sep 15, 2010
  1. @rmm5t

    Version bump 0.9.2

    rmm5t committed Sep 15, 2010
  2. @rmm5t
Commits on Aug 30, 2010
  1. @rmm5t

    Version bump 0.9.1

    rmm5t committed Aug 30, 2010
  2. @rmm5t

    Upped qunit

    rmm5t committed Aug 30, 2010
  3. @rmm5t

    Added test for microsecond support

    rmm5t committed Aug 30, 2010
  4. @mdornseif @rmm5t

    fix for micro second precision timestamps

    timeago is now able to parse timestamps wth micro-second precision.
    Before timestamps like "2010-08-29 09:24:52.556066Z" resutled in an
    parsing error / invalid datetime object.
    mdornseif committed with rmm5t Aug 29, 2010
Commits on Jun 22, 2010
  1. @rmm5t

    Missing <html> tag on test page

    rmm5t committed Jun 22, 2010
  2. @rmm5t

    HTML 5 doctype on documentation

    rmm5t committed Jun 22, 2010
Commits on Jun 21, 2010
  1. @rmm5t
  2. @rmm5t

    Version bump 0.9

    rmm5t committed Jun 21, 2010
  3. @rmm5t
Commits on Feb 28, 2010
  1. @rmm5t

    Added support for using words instead of figures for a range of numbers

    * The intention is to give the ability to support words instead of figures for numbers up to ten.
    * Credit goes to Nick Zadrozny (nzadrozny) for the idea
    rmm5t committed Feb 28, 2010
  2. @rmm5t
Commits on Feb 17, 2010
  1. @rmm5t
Commits on Feb 16, 2010
  1. @rmm5t

    Version bump 0.8.2

    rmm5t committed Feb 16, 2010
  2. @rmm5t
Commits on Jan 27, 2010
  1. @rmm5t
  2. @rmm5t
Commits on Jan 15, 2010
  1. @rmm5t

    Upped to jQuery 1.4

    rmm5t committed Jan 15, 2010
Commits on Jan 4, 2010
  1. @rmm5t

    Version bump 0.8.1

    rmm5t committed Jan 4, 2010
  2. @rmm5t
Commits on Jan 3, 2010
  1. @rmm5t

    copyright year

    rmm5t committed Jan 3, 2010
Commits on Nov 1, 2009
  1. @rmm5t
Commits on Oct 31, 2009
  1. @rmm5t
Commits on Oct 26, 2009
  1. @rmm5t
  2. @rmm5t

    Version bump to 0.8.0

    rmm5t committed Oct 26, 2009
  3. @rmm5t
Commits on Oct 25, 2009
  1. @rmm5t
  2. @jollytoad @rmm5t
Commits on Aug 15, 2009
  1. @rmm5t

    Cleanup of tests and docs

    rmm5t committed Aug 15, 2009
Commits on Jul 30, 2009
  1. @rmm5t

    Version bump to v0.7.2

    rmm5t committed Jul 30, 2009
  2. @rmm5t
  3. @rmm5t

    Fixed `rake test`

    rmm5t committed Jul 30, 2009
  4. @rmm5t