a more delicate bubbling problem (stopPropagations does not work in my case)

a more delicate bubbling problem (stopPropagations does not work in my case)

Hy there.

I am making a more complex jquery menu plugin and have a certain issue. One of it's main features is the possibility to add custom functions to it, custom effects. The way i do this is a user selects the animation function he wants to appear when a tab is clicked and in the function there si a switch(){} -case for it.

Here is the code:
  1. handle.bind('click', function(e){
                                _.toggleSubmenu($(this));
                        e.stopPropagation();
                    });


  2. _.toggleSubmenu = function(p){
                switch(_.options.effect.type){
                    case 'slide' :    p.slideToggle(_.options.effect.time, function(){  } ); break;
                    default: case 'toggle': p.toggle();
                }
            }





so in the above 2 functions if _.options.effect.type is "slide" the bubbling effect appears.
Using .stop() or stop(true true) does not work either

Any sugestions?