 	@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

							<div class="J-awr J-awr-JE" aria-disabled="true" style="-webkit-user-select: none; "><%- label %></div>
							"""
	constructor: (label) ->
		obj =
			label: label
		element = @setElement GMailUI.PopupLabel.template obj

class GMailUI.PopupMenuItem extends GMailUI.OnAble
	@template: _.template	"""
							<div class="J-N J-Ks" role="menuitemcheckbox"

	@selectedClass: 'J-Ks-KO'

	constructor: (@menu, label, tooltip = '', title = '', hasChildren = false) ->
		element = @setElement GMailUI.PopupMenuItem.template
			label:			label
			tooltip:		tooltip
			title:			title
			hasChildren:	hasChildren
		super GMailUI.PopupMenuItem.hoverClass, GMailUI.PopupMenuItem.selectedClass

		# Don't focus the item when clicking on it
