From 0e45cc46ef76bb65784ddd6c7aeb28c78a084bf3 Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Mon, 13 Jul 2009 19:41:09 +0000 Subject: [PATCH] Minor tightening of code git-svn-id: http://svg-edit.googlecode.com/svn/trunk@323 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svg-editor.js | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/editor/svg-editor.js b/editor/svg-editor.js index 5c4c3a6d..dba35939 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -17,8 +17,6 @@ function svg_edit_setup() { } // used to make the flyouts stay ont he screen longer the very first time - var ellipse_flyout_speed = 'slow'; - var rect_flyout_speed = 'slow'; var textBeingEntered = false; var selectedElement = null; var multiselected = false; @@ -665,24 +663,18 @@ function svg_edit_setup() { }); $('#tools_rect_show').mousedown(function(evt){ - $('#tools_rect').show(rect_flyout_speed); - rect_flyout_speed = ''; + $('#tools_rect').show(); // this prevents the 'image drag' behavior in Firefox evt.preventDefault(); }); - $('#tools_rect').mouseleave(function() { - $('#tools_rect').fadeOut(); - }); + $('#tools_rect').mouseleave(function(){$('#tools_rect').fadeOut();}); $('#tools_ellipse_show').mousedown(function(evt){ - $('#tools_ellipse').show(ellipse_flyout_speed); - ellipse_flyout_speed = ''; + $('#tools_ellipse').show(); // this prevents the 'image drag' behavior in Firefox evt.preventDefault(); }); - $('#tools_ellipse').mouseleave(function() { - $('#tools_ellipse').fadeOut(); - }); + $('#tools_ellipse').mouseleave(function() {$('#tools_ellipse').fadeOut();}); $('.tool_flyout_button').mouseover(function() { $(this).addClass('tool_flyout_button_current');