Skip to main content

Search and Top Navigation

#3867 closed bug (notabug)

Opened January 18, 2009 04:28PM UTC

Closed January 19, 2009 06:37AM UTC

tabsshow event is not fired on initialization if using bind()

Reported by: klaus.hartl Owned by: klaus.hartl
Priority: critical Milestone: 1.7
Component: ui.tabs Version: 1.6rc5
Keywords: Cc:
Blocked by: Blocking:
Description

Using bind('tabsshow') the event does not get fired on initialization whereas using the show option it does.

Attachments (0)
Change History (2)

Changed January 19, 2009 01:16AM UTC by scottgonzalez comment:1

The following works for me (logs 'event' then 'callback'):

$('#tabs')
	.bind('tabsshow', function() {
		console.log('event');
	})
	.tabs({
		show: function() {
			console.log('callback');
		}
	});

Were you binding after the call to .tabs()?

Changed January 19, 2009 06:37AM UTC by klaus.hartl comment:2

resolution: → invalid
status: newclosed