Sha256: 2dcaed49ae7d782a63d0b8fa1b5dcbc06772865cac2096ca9bb551bff5ff52f2

Contents?: true

Size: 381 Bytes

Versions: 15

Compression:

Stored size: 381 Bytes

Contents

MainRouter = Backbone.Router.extend
  initialize: ->
    window.Root = new window.RootView()
    window.Root.render() if window.Root

  routes:
    ""                        : "index"
    "/"                       : "index"

  clearView: () ->
    if @aView
      $(@aView.el).empty()
      @aView = undefined

  index: ->
    @clearView()

$ ->
  app.registerRouter( MainRouter )

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
iugu-ux-0.9.2 sandbox/app/assets/javascripts/web-app/usecode/router.coffee
iugu-ux-0.9.1 sandbox/app/assets/javascripts/web-app/usecode/router.coffee
iugu-ux-0.9.0 sandbox/app/assets/javascripts/web-app/usecode/router.coffee
iugu-ux-0.8.9 sandbox/app/assets/javascripts/web-app/usecode/router.coffee
iugu-ux-0.8.8 sandbox/app/assets/javascripts/web-app/usecode/router.coffee
iugu-ux-0.8.7 sandbox/app/assets/javascripts/web-app/usecode/router.coffee
iugu-ux-0.8.6 sandbox/app/assets/javascripts/web-app/usecode/router.coffee
iugu-ux-0.8.5 sandbox/app/assets/javascripts/web-app/usecode/router.coffee
iugu-ux-0.8.0 sandbox/app/assets/javascripts/web-app/usecode/router.coffee
iugu-ux-0.7.1 sandbox/app/assets/javascripts/web-app/usecode/router.coffee
iugu-ux-0.7.0 sandbox/app/assets/javascripts/web-app/usecode/router.coffee
iugu-ux-0.6.7 sandbox/app/assets/javascripts/web-app/usecode/router.coffee
iugu-ux-0.6.6 sandbox/app/assets/javascripts/web-app/usecode/router.coffee
iugu-ux-0.6.5 sandbox/app/assets/javascripts/web-app/usecode/router.coffee
iugu-ux-0.6.0 sandbox/app/assets/javascripts/web-app/usecode/router.coffee