         console.log 'success', inflated
         console.log Date.now()-start
 
-  registerPage:(name,classFunction)->
-    # log "registering a page",name
-    @pageClasses ?= {}
-    @pageClasses[name] = classFunction
-
-  getPageClass:(name)->
-    @pageClasses[name]
-
 noop  = ->
 # KD.log   = log   = if console?.log   and (KD.debugStates.all or KD.debugStates.log)   then console.log.bind(console)   else noop
 # KD.warn  = warn  = if console?.warn  and (KD.debugStates.all or KD.debugStates.warn)  then console.warn.bind(console)  else noop


  getKDViewInstanceFromDomElement:(domElement)->
    @instances[$(domElement).data("data-id")]


  # for now it is just a short hand method for propagate but in nodejs fashion
  emit: (eventType, args)->
    for subscription in @subscriptions
      if eventType is subscription.KDEventType
        subscription.callback.apply null,args

  propagateEvent: (KDEventType, publishingInstance, value)->
    for subscription in @subscriptions

    @subscriptions

  registerInstance : (anInstance)->
    warn "Instance being overwritten!!", anInstance if @instances[anInstance.id]
    @instances[anInstance.id] = anInstance
    @classes[anInstance.constructor.name] ?= anInstance.constructor

