 class LandingView extends JView
+
   constructor: (options = {}, data) ->
     options.cssClass = KD.utils.curry "landing-view", options.cssClass
     super options, data

    fails = []

    @emailAddressSubmit.showLoader()
    async.map emails, (email, callback) ->
      KD.remote.api.JReferrableEmail.invite email, (err) ->
        fails.push email if err
        callback()
    , =>
      @errorMessage.hide()
      @emailAddressSubmit.hideLoader()


        diameter  : 24
      callback    : =>
        @emailAddressSubmit.hideLoader()
        return  if @emailAddressInput.getValue() is ""
        @requireLogin @bound "submitEmailAddresses"

    @invitationSentButton = new KDButtonView
      style : "invitations-sent hidden"
