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'}