Skip to main content

Search and Top Navigation

#3673 closed feature (fixed)

Opened December 17, 2008 05:51PM UTC

Closed February 01, 2011 11:08AM UTC

Widget: Add methods to abstract focus and hover classes

Reported by: scottgonzalez Owned by: scottgonzalez
Priority: major Milestone: 1.9.0
Component: ui.widget Version: 1.6rc2
Keywords: Cc:
Blocked by: Blocking:
Description

Many (all?) plugins now need to add classes on hover to take advantage of the new CSS framework. To reduce code duplication, we should add a hoverClass method to ui.core.js.

$.fn.hoverClass = function(classNames) {
	return this.hover(
		function() {
			$(this).addClass(classNames);
		},
		function() {
			$(this).removeClass(classNames);
		});
};
Attachments (0)
Change History (5)

Changed December 17, 2008 06:36PM UTC by scottgonzalez comment:1

milestone: TBD1.6
owner: → scott.gonzalez
status: newaccepted

Changed December 19, 2008 03:44PM UTC by scottgonzalez comment:2

Also add .focusClass()

See Google group discussion.

Changed December 30, 2008 10:31PM UTC by scottgonzalez comment:3

milestone: 1.61.next

Changed February 01, 2011 11:07AM UTC by scottgonzalez comment:4

component: ui.coreui.widget
milestone: 1.next1.9
status: acceptednew
summary: Add hoverClass methodWidget: Add methods to abstract focus and hover classes

Changed February 01, 2011 11:08AM UTC by scottgonzalez comment:5

resolution: → fixed
status: newclosed

Added in 711df1f5e54062d090d92f4e630e4cb0cc137b21 and 17004b9cac3eb87a72474b6d82d0f0063c23c269.