pickardj79 / bga-galaxytrucker

Other
1 stars 0 forks source link

Prettify all dojo.subscribe-s #34

Open kuwizard opened 3 years ago

kuwizard commented 3 years ago

In galaxytrucker.js we have a looooooong list of dojo.subscribe calls + this.notifqueue.setSynchronous calls. All of them actually are different just by notification name and delay parameter. We can create a simple array of arrays ['name', int] and process all items from this array in a loop. Again, it's the idea which is implemented in Bang! and I find it concise and convenient.