         inflated = JSONH.unpack data
         console.log 'success', inflated
         console.log Date.now()-start
-  
+
   registerPage:(name,classFunction)->
     # log "registering a page",name
     @pageClasses ?= {}

    for subscription in @subscriptions
      if (!KDEventType? or !subscription.KDEventType? or !!KDEventType.match(subscription.KDEventType.capitalize()))
        subscription.callback.call subscription.subscribingInstance, publishingInstance, value, {subscription}
        
  # Get next highest Z-index
  getNextHighestZIndex:(context)->
   uniqid = context.data 'data-id'

        duration : 3000
    else
      callback?()

  socketConnected:()->
    @backendIsConnected = yes
    @propagateEvent "KDBackendConnectedEvent"

  setApplicationPartials:(partials)->
    @appPartials = partials

