#= 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 __renderer: false setInterval: (args...) -> @parent.setInterval(args...) setTimeout: (args...) -> @parent.setTimeout(args...) navigate: (args...) -> Joosy.Router.navigate(args...) __renderSection: -> 'widgets' __load: (@parent, @container) -> if @__renderer @container.html @__renderer() @refreshElements() @__delegateEvents() @__runAfterLoads() this __unload: -> @__removeMetamorphs() @__runAfterUnloads()