Thanks guys, super-fast reply :) Is this documented anywhere? I've scanned through the API and didn't see anything for what seems to be a pretty fundamental requirement from a JS library, don't you think?
I understand if people haven't had the time to include this in the doco though.