Permalink
Browse files

fix(form): typo fix

  • Loading branch information...
bas080
bas080 committed May 24, 2016
1 parent 069c096 commit 69abddbd9aab78c9dfce1178ec14a024524e0bb4
Showing with 1 addition and 29 deletions.
  1. +1 −29 src/schema-form.js
@@ -1,36 +1,8 @@
import {bindable, bindingMode} from 'aurelia-framework';

export class schemaFormCustomElement {

export class SchemaFormCustomElement {
@bindable schema

@bindable({defaultBindingMode: bindingMode.twoWay})
model

// constructor(formElement) {
// this.element = formElement;
// }

// attached () {
// if (this.model.hasValidation && this.model.hasValidation()) {
// this.validation = this.model.getValidation();
// }
// }

// submit () {
// return this.onSubmit();
// }

// onSubmit () {
// if (this.model.hasValidation && !this.model.hasValidation()) {
// return this.element.dispatchEvent(new CustomEvent('complete', this.model.asObject()));
// }

// this.validation.validate()
// .then(() => {
// this.element.dispatchEvent(new CustomEvent('complete', this.model.asObject()));
// })
// .catch(error => {});
// }

}

0 comments on commit 69abddb

Please sign in to comment.