lab11 / accessors

A collection of accessors for Lab11 and other supporting code.
0 stars 1 forks source link

Don't require empty `init`, `wrapup` #16

Closed ppannuto closed 9 years ago

ppannuto commented 9 years ago

It shouldn't be hard for runtimes to do a if (typeof init != 'function') check before calling and skip over them. That said, a "skeleton" accessor should include stubs for them.

An accessor without fire is meaningless, however. I think that's the only hard-requirement.

bradjc commented 9 years ago

init is no longer required in the web runtime.

Most accessors don't have fire, I think if the runtime (like ptolemy) needs it it has to create it itself with port functions.