Fix invisible issue with double-click docking

It generated silent errors because I forgot to add this check, only if
you double-clicked on a window on which that isn't supposed to do
anything. So yeah, that's fixed. Whatever, though.
main
Isaiah Odhner 2014-10-28 19:33:12 -04:00
parent cd2c2b4049
commit d6d6257cc5
1 changed files with 3 additions and 1 deletions

View File

@ -64,7 +64,9 @@ function $Window($component){
$G.off("mousemove", drag);
});
$w.$titlebar.on("dblclick", function(e){
$component.dock();
if($component){
$component.dock();
}
});
$w.$Button = function(text, handler){