CreateJS

We are just doing some work in CreateJS as we install a monitor. CreateJS objects do not have a type property, like ZIM. We can use obj.toString() and it works on some of them, but the Ticker function returns a bunch of the function. obj.prototype.name does not work if the file is minified. So... we are considering adding a type property to the CreateJS objects and we went to the CreateJS docs to see how much work that would be. Here are the docs for Easel. Then there are a few more in Sound, Preload and Tween but not many.

Realized... ZIM is way bigger than CreateJS now. Too bad we were not around in the beginning when everyone was picking their Canvas framework.

3 Likes

We just added a static toString() method on the CreateJS Ticker and perhaps that is all we need to do... will see as we go forward with monitor.

image

1 Like

This is really interesting to read from a learning perspective. I didn’t realize how tricky it can be to identify object types in CreateJS, especially once files are minified.
Seeing how ZIM handles this differently also helped me understand how much design and structure goes into a framework over time. Thanks for sharing the thought process behind this exploration — it’s very educational.