 # export our class
 window.ImageQuestion = image_question
 
-
-#
-# TODO: Right now this is the handshake for the lab frameworks
-# parent window messaging API.  We don't need to follow this
-# we could create our own API for shutterbug which would be simpler.
-#
-hello_handler = (e) ->
-  data = e.data
-  if typeof(data) == 'string'
-    data = JSON.parse(data)
-  type = data.type
-  window.embeddable_origin = data.origin
-  if type == 'hello'
-    message =
-      type: 'hello',
-      origin: origin()
-    post_to_iframe(message)
-
-window.addEventListener('message', hello_handler, false)

      modal: true
    })

    @$answer_text     = $('#image_answer_text')

    @$snapshot_button = $('#image_snapshot_button')


  create_hooks: ->
    @$snapshot_button.click =>
      @shutterbug.getDomSnapshot()
      @show()

    @$cancel_button.click =>
