This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Search form component | |
window.Ui = window.Ui || {}; | |
Ui.SearchForm = (function() { | |
return flight.component(SearchForm); | |
function SearchForm() {} | |
}()); | |
// validation mixin | |
window.Ui = window.Ui || {}; | |
Ui.WithFormValidation = (function() { | |
return WithFormValidation; | |
function WithFormValidation() { | |
this.around('submitForm', function(inputs) { | |
}); | |
} | |
}()); | |
// "boot" | |
Ui.SearchFormWithValidation = flight.compose.mixin(Ui.SearchForm, [Ui.WithFormValidation]); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment