-Null element check for custom interface
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1676 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
393774760b
commit
8bedfda8c4
|
@ -2973,9 +2973,11 @@
|
|||
var i = shortcutButtons.length;
|
||||
while (i--) {
|
||||
var button = document.getElementById(shortcutButtons[i]);
|
||||
var title = button.title;
|
||||
var index = title.indexOf("Ctrl+");
|
||||
button.title = [title.substr(0,index), "Cmd+", title.substr(index+5)].join('');
|
||||
if (button != null) {
|
||||
var title = button.title;
|
||||
var index = title.indexOf("Ctrl+");
|
||||
button.title = [title.substr(0, index), "Cmd+", title.substr(index + 5)].join('');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue