Skip to content

Instantly share code, notes, and snippets.

@criso
Last active Aug 29, 2015
Embed
What would you like to do?
// 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