app/assets/javascripts/joosy/core/page.js.coffee in joosy-1.0.0.RC5 vs app/assets/javascripts/joosy/core/page.js.coffee in joosy-1.0.0.RC6
- old
+ new
@@ -94,14 +94,10 @@
# @container.fadeIn -> complete()
#
@paint: (callback) ->
@::__paint = callback
- #
- # @todo Does anybody have idea why we could need this method?
- # Looks like something should be removed from here and bootstrap proccess.
- #
@afterPaint: (callback) ->
@::__afterPaint = callback
#
# Sets the method which will controll the erasing proccess.
@@ -322,9 +318,10 @@
if @__scrollElement && @__scrollSpeed != 0
@__fixHeight()
@wait "stageClear dataReceived", =>
+ @previous?.__afterPaint?(callbacksParams)
@__callSyncedThrough this, '__paint', callbacksParams, =>
# Page HTML
@swapContainer @layout.content(), @__renderer(@data || {})
@container = @layout.content()