app/assets/javascripts/joosy/core/widget.js.coffee in joosy-0.1.0.RC1 vs app/assets/javascripts/joosy/core/widget.js.coffee in joosy-0.1.0.RC2

- old
+ new

@@ -10,32 +10,30 @@ @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 - setInterval: (args...) -> - @parent.setInterval(args...) - - setTimeout: (args...) -> - @parent.setTimeout(args...) - navigate: (args...) -> - Joosy.Router.navigate(args...) + Joosy.Router.navigate args... __renderSection: -> 'widgets' __load: (@parent, @container) -> if @__renderer - @container.html @__renderer() + @container.html @__renderer(@data || {}) @refreshElements() @__delegateEvents() @__runAfterLoads() this __unload: -> + @__clearTime() @__removeMetamorphs() - @__runAfterUnloads() \ No newline at end of file + @__runAfterUnloads()