views:

184

answers:

0

I've just managed to extend jquery to include the history functionality via $.fn.extend. This is to allow for the history functionality in JQuery Tabs.

The question I now have is how can I extend jquery tabs directly? At the moment my code is as follows

var metab = $('#inv_content').tabs();
$('#inv_content > ul').find('a').history(metab);

but what I would like to do is

$('#inv_content').tabs().history();

Is this possible?