         diameter  : 24
       callback    : =>
         @emailAddressSubmit.hideLoader()
-        if @emailAddressInput.getValue() is ""
-          return
-        else
-          @requireLogin @bound "submitEmailAddresses"
+        return  if @emailAddressInput.getValue() is ""
+        @requireLogin @bound "submitEmailAddresses"
 
     @invitationSentButton = new KDButtonView
       style : "invitations-sent hidden"

    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()


class LandingView extends JView

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