 	bem_class_selector: ".js-bem"
 	bemDataKey: 'bem'
 
-	processOptions: ($dom, b_name, o) ->
+	processOptions: ($dom, item_name, b_name, o) ->
 		if o.attrs
 			for attr, attr_value of o.attrs
 				$dom.prop(attr, attr_value)

	elementModClass: (b_name, e_name,  mod, value) ->
		"#{$$.elementClass(b_name,  e_name)}--#{$$.makeMod(mod,  value)}"

	elementClass: (b_name, e_name) ->
		"#{b_name}__#{e_name}"
		$e
			
	makeBlock: (b_name, o) ->
		item_name = $$.blockClass(b_name)
		$b = @makeDom(o, item_name)
		$$.processOptions($b, item_name, b_name, o)
		$b
		
	init: ($context) ->
