 
 	# Handler for the buy button
 	buyButtonHandler = (event) =>
-		selectedSku = skuSelectorObj.findSelectedSku()
+		selectedSku = selector.findSelectedSku()
 		if selectedSku
 			return options.addSkuToCart(selectedSku.sku, context)
 		else
-			options.selectors.warning(context).show().text('Por favor, escolha: ' + skuSelectorObj.findUndefinedDimensions()[0])
+			options.selectors.warning(context).show().text('Por favor, escolha: ' + selector.findUndefinedDimensions()[0])
 			return false
 
 	# Handles changes in the dimension inputs
 	dimensionChangeHandler = (event) ->
 		dimensionName = $(this).attr('data-dimension')
 		dimensionValue = $(this).attr('data-value')
-		skuSelectorObj.setSelectedDimension(dimensionName, dimensionValue)
-		skuSelectorObj.resetNextDimensions(dimensionName)
-		selectedSku = skuSelectorObj.findSelectedSku()
-		undefinedDimensions = skuSelectorObj.findUndefinedDimensions()
+		selector.setSelectedDimension(dimensionName, dimensionValue)
+		selector.resetNextDimensions(dimensionName)
+		selectedSku = selector.findSelectedSku()
+		undefinedDimensions = selector.findUndefinedDimensions()
 
 		options.selectors.warning(context).hide()
 		options.selectors.warnUnavailable(context).filter(':visible').hide()

		for dimension, i in @dimensions when i > currentIndex
			@setSelectedDimension(dimension, undefined)

	# Renders the DOM elements of the Sku Selector, given the context
	renderSkuSelector: (context) =>
		dimensionIndex = 0

		image = @skus[0].image

		context.find('.vtexsc-skuProductImage img').attr('src', image).attr('alt', @name)
		context.find('.vtexsm-prodTitle').text(@name)

		skuListBase = context.find('.skuListEach').remove()
		dimensionListsBase = context.find('.dimensionListsEach').remove()
		for dimension, dimensionValues of @uniqueDimensionsMap
			dimensionList = dimensionListsBase.clone()
			dimensionSanitized = sanitize(dimension)

			dimensionList.find('.specification').text(dimension)
			dimensionList.find('.topic').addClass("#{dimensionSanitized}").addClass("item-dimension-#{dimensionSanitized}")
			dimensionList.find('.skuList').addClass("group_#{dimensionIndex}")
			dimensionIndex++
			for value, i in dimensionValues

	options.selectors.buyButton(this)
		.click(buyButtonHandler)

	for dimension in selector.dimensions
		renderer.selectItemDimensionInput(dimension)
			.change(dimensionChangeHandler)

	if options.warnUnavailable
