app/assets/javascripts/joosy/core/layout.js.coffee in joosy-1.0.0.RC3 vs app/assets/javascripts/joosy/core/layout.js.coffee in joosy-1.0.0.RC4

- old
+ new

@@ -99,15 +99,20 @@ # @example Basic usage # @fetch (complete) -> # $.get '/rumbas', (@data) => complete() # @fetch: (callback) -> - @::__fetch = callback + @::__fetch = (complete) -> + @data = {} + callback.call this, => + @dataFetched = true + complete() # - # Defaults to `false` to ease beforePaint state check. + # Prefetched page data. # data: false + dataFetched: false # # @param [Hash] params List of route params # constructor: (@params) ->