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

- old
+ new

@@ -15,16 +15,26 @@ @include Joosy.Modules.Renderer @include Joosy.Modules.TimeManager @include Joosy.Modules.WidgetsManager @include Joosy.Modules.Filters - @view 'layouts/default' + @view 'default' - @beforePaint: (callback) -> @::__beforePaint = callback - @paint: (callback) -> @::__paint = callback - @erase: (callback) -> @::__erase = callback + @beforePaint: (callback) -> + @::__beforePaint = callback + @paint: (callback) -> + @::__paint = callback + @erase: (callback) -> + @::__erase = callback + + @fetch: (callback) -> + @::__fetch = callback + data: false + + constructor: (@params) -> + navigate: (args...) -> Joosy.Router.navigate(args...) __renderSection: -> 'layouts' @@ -34,14 +44,14 @@ @__delegateEvents() @__setupWidgets() @__runAfterLoads() __unload: -> - @clearTime() + @__clearTime() @__unloadWidgets() @__runAfterUnloads() yield: -> @uuid = Joosy.uuid() content: -> - $("##{@uuid}") \ No newline at end of file + $("##{@uuid}")