 			@$badylInner.css addCss if addCss
 			@state = newState
 
+		measureInnerWidth: ($el) ->
+			$el.append $measureDiv = $("<div>").css display: "block", width: "100%"
+			result = $measureDiv.width()
+			$measureDiv.remove()
+			result
+
 	$.fn.badyl = (method, args...) ->
 		@each ->
 			badyl = $(@).data 'badyl'


		badylize: ->
			return if @badylized
			@originalWidth = @$el.width()
			@originalHeight = @$el.height()

			@badylInnerHeight = @originalHeight + @config.offset * 2

			windowHeight = $(window).height()
			return if @originalHeight is 0

			@badylHeight = @$refEl.height() + @config.offset * 2


###
@name jquery-badyl
@description Meet Badyl – bootstrap affix-like wheel reinvent.
@version 1.7.53
@author Se7enSky studio <info@se7ensky.com>
###

###! jquery-badyl 1.7.53 http://github.com/Se7enSky/jquery-badyl###

plugin = ($) ->

