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
master
Alexis Deveria 2010-01-29 18:48:08 +00:00
parent 0690ed7760
commit e12ea017ed
2 changed files with 3 additions and 3 deletions

View File

@ -146,7 +146,7 @@ $(function() {
key: "L",
includeWith: {
button: '#tool_line',
'default': true,
isDefault: true,
position: 1
},
events: {

View File

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