From e12ea017ed4502e7b66319b3ea415388521cd7ff Mon Sep 17 00:00:00 2001 From: Alexis Deveria Date: Fri, 29 Jan 2010 18:48:08 +0000 Subject: [PATCH] Fixed bug that broke svg-edit in non-FF browsers git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1305 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/ext-connector.js | 2 +- editor/svg-editor.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/editor/ext-connector.js b/editor/ext-connector.js index 8b3ed59a..0ad0c6eb 100644 --- a/editor/ext-connector.js +++ b/editor/ext-connector.js @@ -146,7 +146,7 @@ $(function() { key: "L", includeWith: { button: '#tool_line', - 'default': true, + isDefault: true, position: 1 }, events: { diff --git a/editor/svg-editor.js b/editor/svg-editor.js index 96a5095c..723836eb 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -428,7 +428,7 @@ function svg_edit_setup() { var ref_data = Actions.getButtonData(opts.button); - if(opts.default) { + if(opts.def) { placement_obj['#' + tls_id + '_show'] = btn.id; } // TODO: Find way to set the current icon using the iconloader if this is not default @@ -438,7 +438,7 @@ function svg_edit_setup() { sel: '#'+id, fn: btn.events.click, icon: btn.id, - isDefault: btn.includeWith?btn.includeWith.default:0 + isDefault: btn.includeWith?btn.includeWith.isDefault:0 }, ref_data]; // {sel:'#tool_rect', fn: clickRect, evt: 'mouseup', key: 4, parent: '#tools_rect', icon: 'rect'}