JQuery UI tabs documentation disable method

JQuery UI tabs documentation disable method


While checking the documentation on http://jqueryui.com/demos/tabs/,
on "options" tab, i noticed the "disabled" option:
//setter
$('.selector').tabs('option', 'disabled', [1, 2]);
using this worked for me to disable certain tabs but then i was
wondering how to enable them again... so i checked methods which made
me end up with the following examples:
Enable a disabled tab. To enable more than one tab at once reset the
disabled
$('#example').data('disabled.tabs', []);.
Disable a tab. The selected tab cannot be disabled. To disable more
than one tab at once use: $('#example').data('disabled.tabs', [1, 2,
3]);
These methods didn't seem to work for me but following this logic i
figured the following code might help me enable them again using the
first example:
$('.selector').tabs('option', 'disabled', []);
This worked for me so i was wondering if the .data('disabled.tabs',
[]); methods are outdated in the latest version of jquery? if so, i'd
suggest modifying the documentation on the site ;)
like adding "enabled" => $('.selector').tabs('option', 'disabled',
[]); to the "options" tab