     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)
        this.ensureLoaded().then ->
            sv = new ScreenView(props)
            sv.active = true
            sv


class ScreenViewSet extends Lanes.Models.BasicCollection

    else
        Lanes.warn "Unable to find definition for screen #{screen_id}"



Lanes.Screens.Definitions = {
    all: new ScreenSet
    displaying: new ScreenViewSet([], { single_active_only: true })
