Fixed some minor bugs
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1768 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
@@ -646,8 +646,9 @@
|
||||
// unless we're already in always set the mode of the editor to select because
|
||||
// upon creation of a text element the editor is switched into
|
||||
// select mode and this event fires - we need our UI to be in sync
|
||||
|
||||
if (mode != "multiselect" && !is_node) {
|
||||
|
||||
if (mode !== "multiselect" && !is_node) {
|
||||
console.log('ut');
|
||||
updateToolbar();
|
||||
}
|
||||
|
||||
@@ -2714,7 +2715,7 @@
|
||||
}
|
||||
|
||||
var setIcon = Editor.setIcon = function(elem, icon_id, forcedSize) {
|
||||
var icon = (typeof icon_id == 'string') ? $.getSvgIcon(icon_id, true) : icon_id;
|
||||
var icon = (typeof icon_id === 'string') ? $.getSvgIcon(icon_id, true) : icon_id.clone();
|
||||
if(!icon) {
|
||||
console.log('NOTE: Icon image missing: ' + icon_id);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user