Sha256: f04b5a8c358c9de1fd5ae0617be431fef539a9f6dd191f396ad29d9b9cbe0bef

Contents?: true

Size: 897 Bytes

Versions: 1

Compression:

Stored size: 897 Bytes

Contents

#= 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()

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
joosy-0.1.0.RC2 app/assets/javascripts/joosy/core/widget.js.coffee