     else
         Lanes.warn "Unable to find definition for screen #{screen_id}"
 
+
+
 Lanes.Screens.Definitions = {
     all: new ScreenSet
     displaying: new ScreenViewSet([], { single_active_only: true })

    setBrowserLocation: (location) ->
        [instanceId, screenId, args...] = _.compact(location.pathname.split('/'))
        return unless screenId
        if instanceId and ( instance = @displaying.findInstance(screenId, instanceId) )
            instance.active = true
        else


    display: (props) ->
        props = _.extend({}, props, screen: this)
        display = ->
            sv = new ScreenView(props)
            sv.active = true
        this.ensureLoaded().then ->
            if Lanes.current_user.isLoggedIn
                display()
            else
                Lanes.current_user.on('change:isLoggedIn', display)


class ScreenViewSet extends Lanes.Models.BasicCollection
