Skip to content

Instantly share code, notes, and snippets.

@criso
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save criso/8834103 to your computer and use it in GitHub Desktop.
Save criso/8834103 to your computer and use it in GitHub Desktop.
// 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