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

- old
+ new

@@ -50,10 +50,11 @@ # # Prefetched page data. # data: false + dataFetched: false # # Sets layout for current page # # @param [Class] layoutClass Layout to use @@ -131,10 +132,12 @@ # $.get '/rumbas', (@data) => complete() # @fetch: (callback) -> @::__fetch = (complete) -> @data = {} - callback.call(this, complete) + callback.call this, => + @dataFetched = true + complete() # # Sets the several separate methods that will fetch data in parallel. # # @note This will work through {Joosy.Modules.Events.synchronize}