 			generate$option = (option) =>
 				$option = $ """<li class="select7__option #{option.class or ""}"></li>"""
 				if @config.optionTemplate
-					$option.html @config.optionTemplate option
+					$option.html @config.optionTemplate.call @, option, @items
 				else
 					$option.text option.title
 				$option.addClass "select7__option_disabled" if option.disabled

			$value.attr "data-value", if @selected.isPlaceholder then "" else @selected.value
			$value.toggleClass "select7__placeholder", !!@selected.isPlaceholder
			if @config.currentTemplate
				$value.html @config.currentTemplate @selected
			else
				$value.text @selected.title
				$value.find(".select7__icon").remove()

				hasCurrent = no
				$label = $ """<span class="select7__optgroup-label"></span>"""
				if @config.optgroupTemplate
					$label.html @config.optgroupTemplate.call @, optgroup, @items
				else
					$label.text optgroup.title
				$optgroup.append $label
