From cdbcb7cabf09a621d92140bc965d20fea7ac8d4b Mon Sep 17 00:00:00 2001 From: Marc Date: Mon, 6 Jun 2016 17:16:19 +1000 Subject: [PATCH] Update jquery.counterup.js Removing this should fix this compile error with Google Closure: JSC_PARSE_ERROR: Parse error. Invalid delete operand. Only properties can be deleted. at line 66 character 0 delete $this.data('counterup-nums'); I'm not sure exactly what the delete is supposed to do and if its necessary??? --- jquery.counterup.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jquery.counterup.js b/jquery.counterup.js index bc7871f..34a745b 100644 --- a/jquery.counterup.js +++ b/jquery.counterup.js @@ -63,7 +63,6 @@ if ($this.data('counterup-nums').length) { setTimeout($this.data('counterup-func'), $settings.delay); } else { - delete $this.data('counterup-nums'); $this.data('counterup-nums', null); $this.data('counterup-func', null); } @@ -80,4 +79,4 @@ }; -})( jQuery ); \ No newline at end of file +})( jQuery );