Possible to add tests for this feature?
Add 'dispose' action
- use with elements about to be removed from the DOM or that otherwise
no longer require updating
- only clears interval; leaves node as-is
- usage: $('.timeago').timeago('dispose');
Add tests for 'dispose' action
Line endings should be good now.
@enterprisey Thanks! Sorry for the delay on this one. I'll try to get an official release out this week that incorporates this change too.
@rmm5t along the same lines as dispose (not having extra timers, etc. around), can you take a look at #30 which (even when not using jquery-live) or similar so that calling autosave() multiple times (when new portions of the dom are rendered/re-rendered) that multiple instances of autosave don't get instantiated?