diff --git a/jquery.counterup.js b/jquery.counterup.js index bc7871f..ad4b00a 100644 --- a/jquery.counterup.js +++ b/jquery.counterup.js @@ -59,6 +59,9 @@ // Updates the number until we're done var f = function() { + if(!$this.data('counterup-nums')){ + return; + } $this.text($this.data('counterup-nums').shift()); if ($this.data('counterup-nums').length) { setTimeout($this.data('counterup-func'), $settings.delay); @@ -80,4 +83,4 @@ }; -})( jQuery ); \ No newline at end of file +})( jQuery );