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

    if license.template
      if _.isFunction(license.template)
        license.template(el, license, select)
        return el
      else if license.template instanceof $
        el.append(license.template)
    else

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

