diff --git a/jquery.counterup.js b/jquery.counterup.js index bc7871f..7cebc86 100644 --- a/jquery.counterup.js +++ b/jquery.counterup.js @@ -75,9 +75,18 @@ }; // Perform counts when the element gets into view - $this.waypoint(counterUpper, { offset: '100%', triggerOnce: true }); + try { + $this.waypoint(function (direction) { + counterUpper(); + this.destroy(); + }, { + offset: '100%' + }); + } catch (e) { + counterUpper(); + }; }); }; -})( jQuery ); \ No newline at end of file +})( jQuery );