You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The JS syntax I was using is a bit obsolete. Some things that could be cleaned up:
Remove all ;.
No need for the function keyword. E.g. initEach: function () { becomes initEach() {.
For object properties assigned to variables of the same name, a shorthand is permitted, so, e.g. return {objects: {rect: rect, shadow: shadow}}; becomes return {objects: {rect, shadow}}
The JS syntax I was using is a bit obsolete. Some things that could be cleaned up:
;.functionkeyword. E.g.initEach: function () {becomesinitEach() {.return {objects: {rect: rect, shadow: shadow}};becomesreturn {objects: {rect, shadow}}