-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;
|
var i = shortcutButtons.length;
|
||||||
while (i--) {
|
while (i--) {
|
||||||
var button = document.getElementById(shortcutButtons[i]);
|
var button = document.getElementById(shortcutButtons[i]);
|
||||||
var title = button.title;
|
if (button != null) {
|
||||||
var index = title.indexOf("Ctrl+");
|
var title = button.title;
|
||||||
button.title = [title.substr(0,index), "Cmd+", title.substr(index+5)].join('');
|
var index = title.indexOf("Ctrl+");
|
||||||
|
button.title = [title.substr(0, index), "Cmd+", title.substr(index + 5)].join('');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue