             else
               throw new TypeError('Unknown type: ' + type);
           else
-            ds 
+            ds
 
         widgetDeferred = $.when.apply($, promises)
-
 
         templateDeferred = @sandbox.template.load(@templates, @ref)
 

    refreshEvents: ['model.hull.me.change']

    constructor: (options)->
      @ref = options.ref
      @api = @sandbox.data.api
      try
        @events = if _.isFunction(@events) then @events() else @events
        @events ?= {}

      dfd

    loggedIn: =>
      return false unless @sandbox.data.api.model('me').id?
      identities = {}
      @sandbox.data.api.model('me').get("identities").map (i)-> identities[i.provider] = i
      identities

    getTemplate: (tpl, data)=>
      tpl || @template || @templates[0]
