+= operator not working anymore?
Posted: Wed Oct 23, 2019 2:16 pm
I just upgraded from Ember 1.9 to Ember 2.0. First thing I tried was recompiling my libraries that compile smoothly with Ember 1.9. Ember 2.0 throws a syntax error at a construct similar to '$a += $b;'
Error at line 587 of script 'library.lite'.
Error is 'syntax error near [+=]'
When I change to '$a = $a + $b' the error message is gone. The same error is thrown for all instances of += in my library. It would not be a big deal replacing all instances of the += operator, but my guess is that it should work as described on page 3 of the Ember manual.
Cheers
Gerhard
Error at line 587 of script 'library.lite'.
Error is 'syntax error near [+=]'
When I change to '$a = $a + $b' the error message is gone. The same error is thrown for all instances of += in my library. It would not be a big deal replacing all instances of the += operator, but my guess is that it should work as described on page 3 of the Ember manual.
Cheers
Gerhard