   # @private
   #
   attachEventHandlerToCheckbox: ->
-    @showPasswordCheckbox.on 'click', this.togglePasswordVisibility
+    @showPasswordCheckbox.on('click', this.togglePasswordVisibility)
 
   #
   # @private

    this.storeThisInData() # store this in the new field
    pseudoPlaceholderObject.fieldDidChange(newField) if pseudoPlaceholderObject

    if @field.attr('id') is 'user_password' and $('current_password_wrap').length
      SublimeVideo.currentPasswordHandler.setupField @field

    @field


    # We can't simply modify the type attribute of the field (from 'password' to 'text'), because IE doesn't support this
    # cf: http://www.alistapart.com/articles/the-problem-with-passwords
    newField = $('<input />',
      id:          @field.attr 'id'
      name:        @field.attr 'name'
      value:       @field.val()
      size:        @field.size()
      placeholder: @field.attr 'placeholder'
      required:    @field.attr 'required'
      class:       @field.attr 'class'
      type:        fieldType)

    if @field.data 'pseudoPlaceholderObject'
      pseudoPlaceholderObject = @field.data('pseudoPlaceholderObject')

    @field.removeData() # Removes eventual observers and storage keys
    @field.replaceWith newField
