 
   removeCustomData:(path)->
     path = path.split '.' if 'string' is typeof path
-    [pathUntil..., last] = path 
+    [pathUntil..., last] = path
     isArrayElement = not isNaN +last
     if isArrayElement
       JsPath.spliceAt @customData, pathUntil, last
     else
       JsPath.deleteAt @customData, path
-  
+
   serializeFormData:(data={})->
     for inputData in @getDomElement().serializeArray()
       data[inputData.name] = inputData.value
     data
-  
+
   getData: ->
     formData = $.extend {},@getCustomData()
 
     @serializeFormData formData
-        
+
     formData
 
   focusFirstElement:-> KDFormView.findChildInputs(@)[0].$().trigger "focus"
-    
+
   setCallback:(callback)-> @formCallback = callback
 
   getCallback:()-> @formCallback
-  
+
   reset:=> @$()[0].reset()
-  
+
   submit:(event)=>
 
     if event
       event.stopPropagation()
       event.preventDefault()
-    
+
     form                = @
     inputs              = KDFormView.findChildInputs @
     validationCount     = 0

    @valid = null
    @setCallback options.callback
    @customData = {}
  
  childAppended:(child)->
    child.associateForm? @
    if child instanceof KDInputView
      @propagateEvent KDEventType: 'inputWasAdded', child
    super
  
  bindEvents:()->
    @getDomElement().bind "submit",(event)=>
      @handleEvent event

      inputToBeValidated.validate null, event

    # if no validation is required mimic as all were validated
    form.emit "FormValidationFinished" if toBeValidatedInputs.length is 0

