app/assets/javascripts/joosy/core/layout.js.coffee in joosy-1.0.0.RC4 vs app/assets/javascripts/joosy/core/layout.js.coffee in joosy-1.0.0.RC5
- old
+ new
@@ -46,15 +46,15 @@
#
# @example Sample before painter
# @beforePaint (complete) ->
# if !@data # checks if parallel fetching finished
# $('preloader').slideDown -> complete()
- #
#
+ #
@beforePaint: (callback) ->
@::__beforePaint = callback
-
+
#
# Sets the method which will controll the painting proccess.
#
# This method will be called after fetching, erasing and beforePaint is complete.
# It should be used to setup appearance effects of layout.
@@ -84,11 +84,11 @@
# @erase (complete) ->
# @container.fadeOut -> complete()
#
@erase: (callback) ->
@::__erase = callback
-
+
#
# Sets the method which will controll the data fetching proccess.
#
# @note Given method will be called with `complete` function as parameter. As soon as your
# preparations are done you should call that function.
@@ -99,21 +99,21 @@
# @example Basic usage
# @fetch (complete) ->
# $.get '/rumbas', (@data) => complete()
#
@fetch: (callback) ->
- @::__fetch = (complete) ->
+ @::__fetch = (complete) ->
@data = {}
callback.call this, =>
@dataFetched = true
complete()
#
# Prefetched page data.
#
data: false
dataFetched: false
-
+
#
# @param [Hash] params List of route params
#
constructor: (@params) ->