     @update()
 
   createElement: (license) ->
+    customTemplate = false
     el = $ '<li />'
     select = (e) =>
       @selectLicense(license, el)

      el = $(el)
      license = el.data 'license'
      if licenses[license.key]? and @matchFilter(licenses[license.key])
        elements[licenses.key] = el
      else
        el.remove()


      el.append($('<p />').text(license.description)) unless _.isEmpty(license.description)
      el.addClass(license.cssClass) if license.cssClass

    unless customTemplate
      el.click (e) ->
        return if e.target && $(e.target).is('button, a')
        select()

    el.data 'license', license
    return el
