           @subElemName = subElemName
           @valid = true
 
-        reset: ->
-          e.reset() for e in this[@subElemName]
+        reset: -> e.reset() for e in this[@subElemName]
 
         validate: ->
           for e in this[@subElemName]
             if e.display is true and e.validate() is false
               @valid = false; return @valid              
           @valid = true; return @valid
-          
 
       class Displayable extends Element
         _doDisplay: (def, showOrHide) ->

          @submitLabel = def['submit']
          @resetLabel = def['reset']
          @pages = (new Page(p) for p in def['pages'])


      class Page extends Displayable
        constructor: (def) ->

## 

angular.module('CoolFormServices').
  factory('coreService', (validators, directivesService)->

    return(definition) ->

      directives = directivesService()
      _fields = {}                  

      class Element
