bfintal / Counter-Up

Counter-Up is a lightweight jQuery plugin that counts up to a targeted number when the number becomes visible.
http://bfintal.github.io/Counter-Up/demo/demo.html
GNU General Public License v2.0
746 stars 722 forks source link

Update jquery.counterup.js #34

Open castles opened 8 years ago

castles commented 8 years ago

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???

josenobile commented 7 years ago

Hello,

This need to be fixed. The minification cannot operate with this error.

java -Xss2048k -jar '/usr/lib/node_modules/google-closure-compiler/compiler.jar' --charset utf-8 --compilation_level 'SIMPLE_OPTIMIZATIONS' '/tmp/jquery.counterup.js' /tmp/jquery.counterup.js:66: ERROR - Parse error. Invalid delete operand. Only properties can be deleted. delete $this.data('counterup-nums'); ^

1 error(s), 0 warning(s)