 	@pushedClass: 'T-I-Kq'
 
 	constructor: (label, tooltip = '', title = '') ->
-		obj =
+		element = @setElement GMailUI.ButtonBarButton.template
 			label:		label
 			tooltip:	tooltip
 			title:		title
-		element = @setElement GMailUI.ButtonBarButton.template obj
-
 		super GMailUI.ButtonBarButton.hoverClass
 
 		# Don't focus the item when clicking on it

	@selectedClass: 'J-LC-JR-Jp'

	constructor: (label, selected = false, tooltip = '', title = '') ->
		obj =
			label:		label
			title: 		title
			tooltip: 	tooltip

		element = @setElement GMailUI.PopupCheckbox.template obj

		super GMailUI.PopupCheckbox.hoverClass, GMailUI.PopupCheckbox.selectedClass
		@setSelected selected
	@hoverClass: 'J-JK-JT'

	constructor: (label, tooltip = '', title = '') ->
		element = @setElement GMailUI.Button.template
			label:		label
			tooltip:	tooltip
			title:		title
		super GMailUI.Button.hoverClass

class GMailUI.ButtonBarButton extends GMailUI.OnAble
