 				fill: true
 
 		@registerTemplate(@__meter)
+
 		if @_state
 			@setState(@_state)
 		else if @_states.length

		@_onUpdate?.call(@, @)
		@

CUI.defaults.ProgressMeter =
	states:
		waiting: "fa-hourglass"
		spinning: "svg-spinner cui-spin-stepped"


		@__state = state
		if @__state in @_states
			if @__state == "spinning2"
				@__meter.replace(@getAnimatedHourglassIcon(), "icon")
			else
				icon = @["_icon_"+@__state]
				if icon instanceof CUI.Icon
					@__meter.replace(icon, "icon")
				else if not CUI.util.isEmpty(icon)
					@__meter.replace(new CUI.Icon(icon: icon), "icon")
				else
					@__meter.empty("icon")
			
			# console.debug icon, @__state
			@__meter.DOM.setAttribute("state", @__state)
			@__meter.empty("text")
