waterbearlang/waterbear — pull request #254 by dethe (2013-07-04 06:47:11+00:00)
Title: 240 lifecycle events

Fixed wb-clone event (wasn't bubbling to document.body)
Added wb-loaded event (IDE is ready)
Added wb-script-loaded (Script has loaded, from whatever source)

Example of listening for the loaded events:

Event.on(document.body, 'wb-loaded', null, function(evt){console.log('loaded');});
Event.on(document.body, 'wb-script-loaded', null, function(evt){console.log('script loaded');});