Add missing onLoadedData handler prototype.
Merge pull request #812 from nickarnold/bugfix-811

Loadeddata event doc fix. Fixes #811