 ###
 @name jquery-select7
-@version 0.0.7
+@version 0.1.1
 @author Se7enSky studio <info@se7ensky.com>
 ###
-###! jquery-select7 0.0.7 http://github.com/Se7enSky/jquery-select7 ###
+###! jquery-select7 0.1.1 http://github.com/Se7enSky/jquery-select7 ###
 
 plugin = ($) ->
 	

			@selectedIndex = readSelectedIndexFromSelect @el
			@selected = @options[@selectedIndex]
			@$select7.find("[data-role='value']").attr("data-value", @selected.value).text @selected.title
		
		open: ->
			return if @opened
			@$drop = $ """<ul class="select7__drop"></ul>"""
			for option, i in @options
				continue if i is @selectedIndex
				$option = $ """<li class="select7__option" data-i="#{i}"></li>"""
				$option.text option.title
				@$drop.append $option
			@$drop.on "click", ".select7__option", (e) =>
				{i} = $(e.target).data()

		s.replace(///^\s*///, '').replace(///\s*$///, '')
	readOptionsFromSelect = (el) ->
		(for option in $(el).find("option")
			data = $(option).data()
			data.title = trim $(option).text()
			data.value = $(option).attr("value") or trim $(option).text()
			data
		)
	readSelectedIndexFromSelect = (el) ->
		selectVal = $(el).val()
