diff options
| author | Neylor Ohmaly | 2014-02-27 23:08:39 -0300 | 
|---|---|---|
| committer | Neylor Ohmaly | 2014-02-27 23:08:39 -0300 | 
| commit | ba8432dc198541bef6fb253e97146f52505e780b (patch) | |
| tree | 6d276c2d3a19f40a52385e17ac076f21cb9c5b6c /example/nsPopover.js | |
| parent | 1a4e375236e0ec17ed1ab11e43cd950343310a82 (diff) | |
| download | nsPopover-ba8432dc198541bef6fb253e97146f52505e780b.tar.bz2 | |
Keep popover open while triggering element has mouse over it.
Diffstat (limited to 'example/nsPopover.js')
| -rw-r--r-- | example/nsPopover.js | 10 | 
1 files changed, 7 insertions, 3 deletions
| diff --git a/example/nsPopover.js b/example/nsPopover.js index cfdb904..505fbba 100644 --- a/example/nsPopover.js +++ b/example/nsPopover.js @@ -140,9 +140,13 @@            });
          });
 -        elm.on('mouseout', function() {
 -          hider_.hide($popover, options.timeout);
 -        });
 +        elm
 +          .on('mouseout', function() {
 +            hider_.hide($popover, options.timeout);
 +          })
 +          .on('mouseover', function() {
 +            hider_.cancel();
 +          });
          $popover
            .on('mouseout', function(e) {
 | 
