 	@selectedClass: 'J-Ks-KO'
 
 	constructor: (@menu, label, tooltip = '', title = '', hasChildren = false) ->
-		obj =
+		element = @setElement GMailUI.PopupMenuItem.template
 			label:			label
 			tooltip:		tooltip
 			title:			title
 			hasChildren:	hasChildren
-		element = @setElement GMailUI.PopupMenuItem.template obj
-
 		super GMailUI.PopupMenuItem.hoverClass, GMailUI.PopupMenuItem.selectedClass
 
 		# Don't focus the item when clicking on it

	@pushedClass: 'T-I-Kq'

	constructor: (label, tooltip = '', title = '') ->
		obj =
			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 = '') ->
		element = @setElement GMailUI.PopupCheckbox.template
			label:		label
			title: 		title
			tooltip: 	tooltip
		super GMailUI.PopupCheckbox.hoverClass, GMailUI.PopupCheckbox.selectedClass
		@setSelected selected