diff --git a/jquery.timeago.js b/jquery.timeago.js index 483be57..ef9327a 100644 --- a/jquery.timeago.js +++ b/jquery.timeago.js @@ -175,6 +175,13 @@ }; function refresh() { + //check if it's still visible + if(!$.contains(document.documentElement,this)){ + //stop if it has been removed + $(this).timeago("dispose"); + return this; + } + var data = prepareData(this); var $s = $t.settings;