diff --git a/taskbar.js b/taskbar.js
index d39bde3..e708ee5 100644
--- a/taskbar.js
+++ b/taskbar.js
@@ -27,7 +27,7 @@ attach: function (context, settings) {
       $('body').click(function(e) {
         // Only close when click outside the taskbar
         if ($(e.target).parents('#taskbar').length == 0) {
-          Drupal.taskbar.closeAll($());
+           $('.taskbar-item-extra').hide();
         }
       });
     }
