(function(){ "use strict"; KC3StrategyTabs.playground = new KC3StrategyTab("playground"); KC3StrategyTabs.playground.definition = { tabSelf: KC3StrategyTabs.playground, /* INIT: mandatory Prepares initial static data needed. ---------------------------------*/ init: function() { }, /* RELOAD: optional Loads latest player or game data if needed. ---------------------------------*/ reload: function() { }, /* EXECUTE: mandatory Places data onto the interface from scratch. ---------------------------------*/ execute: function() { }, /* UPDATE: optional Partially update elements of the interface, possibly without clearing all contents first. Be careful! Do not only update new data, but also handle the old states (do cleanup). Return `false` if updating all needed, EXECUTE will be invoked instead. ---------------------------------*/ update: function(pageParams) { // Use `pageParams` for latest page hash values, // KC3StrategyTabs.pageParams keeps the old values for states tracking // Returning `true` means updating has been handled. return false; } }; })();