   null
 
 # Scans the document for templates, creating Xray.TemplateSpecimens for them.
-Xray.findTemplates = -> util.bm 'addTemplates', ->
+Xray.findTemplates = -> util.bm 'findTemplates', ->
   # Find all <!-- XRAY START ... --> comments
   comments = $('*:not(iframe,script)').contents().filter ->
     this.nodeType == 8 and this.data[0..9] == "XRAY START"

# Backbone.View.
class Xray.ViewSpecimen extends Xray.Specimen
  @all = []

  makeLabel: ->
    if @template
      handles = $("<div class='xray-specimen-multi-handle'>")
      handles.append(super).append(@template.makeLabel())
    else
      super


# Wraps elements that were rendered by a template, e.g. a Rails partial or

      if el.nodeType == 1 and el.tagName != 'SCRIPT'
        $templateContents.push el
      el = el.nextSibling
    # Remove XRAY template comments from the DOM.
    el.parentNode.removeChild(el) if el?.nodeType == 8
    comment.parentNode.removeChild(comment)
    # Add the template specimen
