     else
       # log "singleton registered! KD.singletons[\"#{singletonName}\"]"
       KD.singletons[singletonName] = object
-      
+
   getSingleton:(singletonName)->
     if KD.singletons[singletonName]?
-      KD.singletons[singletonName] 
+      KD.singletons[singletonName]
     else
       warn "\"#{singletonName}\" singleton doesn't exist!"
       null
-  
+
   emptyDataCache:()->
     for own id,object of @getAllKDInstances
       if object instanceof KDData
         object.destroy()
-  
+
   getAllKDInstances:()-> KD.instances
 
   getKDViewInstanceFromDomElement:(domElement)->

     zIndexContexts[uniqid] = 0
   else
     zIndexContexts[uniqid]++
  
  jsonhTest:->
    method    = 'fetchQuestionTeasers'
    testData  = {
      foo: 10
      bar: 11
    }
    
    start = Date.now()
    $.ajax "/#{method}.jsonh",
      data     : testData

        inflated = JSONH.unpack data
        console.log 'success', inflated
        console.log Date.now()-start

  registerPage:(name,classFunction)->
    # log "registering a page",name
    @pageClasses ?= {}
