Browse files

Stopping click propogation

  • Loading branch information...
1 parent d0ed5a2 commit ecfffc9d1e25b67ab48f943c8aaf140b5396f979 Nathan Long committed Feb 3, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 jquery.persistentpanel.js
View
4 jquery.persistentpanel.js
@@ -129,6 +129,8 @@
// Add namespaced click event listener
$(settings.toggler).bind('click.persistentPanel',function(e){
+ e.preventDefault();
+ e.stopPropagation();
switch($.data(panel, 'persistentPanelState')) {
case 'open':
close();
@@ -137,8 +139,6 @@
open();
break;
}
- // Don't follow that link
- e.preventDefault();
});
// Maintain chainability

0 comments on commit ecfffc9

Please sign in to comment.