#= require joosy/core/joosy #= require joosy/core/modules/module #= require joosy/core/modules/log #= require joosy/core/modules/events #= require joosy/core/modules/container #= require joosy/core/modules/renderer #= require joosy/core/modules/filters class Joosy.Widget extends Joosy.Module @include Joosy.Modules.Log @include Joosy.Modules.Events @include Joosy.Modules.Container @include Joosy.Modules.Renderer @include Joosy.Modules.Filters @include Joosy.Modules.TimeManager __renderer: false data: false navigate: (args...) -> Joosy.Router.navigate args... __renderSection: -> 'widgets' __load: (@parent, @container) -> if @__renderer @container.html @__renderer(@data || {}) @refreshElements() @__delegateEvents() @__runAfterLoads() this __unload: -> @__clearTime() @__removeMetamorphs() @__runAfterUnloads()