You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Matt Karl edited this page Dec 15, 2015
·
3 revisions
The SpringRoll Container support dynamic plugins which can be used to add functionality to the base Container. This plugin is a simple object, which contains a handful of override-able methods, setup, teardown, open, opened, close, closed. These methods can be created
(function(){varplugin=newspringroll.ContainerPlugin();// When the Container is createdplugin.setup=function(){};// When an app is being loaded plugin.open=function(){// the Bellhop client is available here// can be used to receive custom events from the client// this.client.on('customEvent', function(event){});};// When an app is loaded, opened completely plugin.opened=function(){};// When an app begins closing plugin.close=function(){};// When an app fully closed plugin.closed=function(){};// When Container is being destroyed, do clean-up hereplugin.teardown=function(){};}());