 
   populateImageSet: =>
     @imageFrames = new Array()
-    #firstFrame = new ImageFrame('frame-id-1', '1' , "", "")
     for i in [0..3] by 1
       frame = new ImageFrame("frame-id-#{i}", i, "", "")
       @imageFrames[i] = frame
+    #TODO 
     @imageFrames
 
   getFrameFromElement: (elementId) => 
     frame = _.findWhere(@imageFrames, elementId: elementId)
 
-  # getFrameSeqNumberFromElement: (elementId) => 
-  #   getFrameFromElement(elementId).seqNumber
+  getFrameSeqNumberFromElement: (elementId) => 
+     debugger
+     getFrameFromElement(elementId).seqNumber
         
 #TODO move to model
 class ImageFrame

  # TODO provisional handle to frames
  elements:
    'input[name="selected-artifact"]': 'selectedArtifactRadios'
    'img.frame-id-1': 'firstFrame'
    'img.frame-id-2': 'secondFrame'
    'img.frame-id-3': 'thirdFrame'
    'img.frame-id-4': 'fourthFrame'
  
  constructor: ->

    super
   
    #this populates 4 image frames 
    @imageSet = new ImageSet()
    #TODO 
    @currentFrame  =  @imageSet.getFrameFromElement('frame-id-1')

    
    console.log  "Current frame #{@currentFrame .val}"

    # provisional default case of artifact subtype
    artifactSubtype = "other"


        @tool.radius = (@tool.constructor::radius / 2) * (2 - proximity)
        @tool.redraw()

#module.exports = ImageFrame
#module.exports = ImageSet
module.exports = MarkingToolControls
