I have some jQuery code that runs fine until I add the jQuery UI library (1.7.2) and this causes the show() method to fail when I specify a callback.
$('#main.home ul#promotions').show(function() {
if (typeof f == "function") f();
});
It would seem that jQuery UI overrides show and now I need to specify an additional parameter for "effect", the following code fixes the issue:
$('#main.home ul#promotions').show('blind', function() {
if (typeof f == "function") f();
});
However this is part of a script that shouldn't be dependent on the jQuery UI library so ideally I want to stop jQuery UI overriding show in this case.
Can anyone suggest how this can be done?
Dave