Sha256: d8c54e706224205cd5bd2983f98ee599d0982e31847c264a614268a927622f25
Contents?: true
Size: 1.23 KB
Versions: 1
Compression:
Stored size: 1.23 KB
Contents
#= require joosy/core/joosy # # Joosy Application container # # @mixin # Joosy.Application = Pages: {} Layouts: {} Controls: {} loading: true identity: true debug: false debounceForms: false # # Starts Joosy application by binding to element and bootstraping routes # # @param [String] name Name of app (the dir its located in) # @param [String] selector jQuery-compatible selector of root application element # @param [Object] options # initialize: (@name, @selector, options={}) -> @[key] = value for key, value of options @templater = new Joosy.Templaters.RailsJST @name Joosy.Router.__setupRoutes() @sandboxSelector = Joosy.uuid() @content().after "<div id='#{@sandboxSelector}' style='display:none'></div>" @sandboxSelector = '#' + @sandboxSelector # # Gets current application root node # content: -> $(@selector) # # Gets current application sandbox node # sandbox: -> $(@sandboxSelector) # # Switches to given page # # @param [Joosy.Page] page The class (not object) of page to load # @param [Object] params Hash of page params # setCurrentPage: (page, params) -> #if @page not instanceof page @page = new page params, @page
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
joosy-1.0.0.RC6 | app/assets/javascripts/joosy/core/application.js.coffee |