In text_field.coffee, extract this code into a separate method (validateAfterChange() or something similar), and call that method from here, to avoid duplication.