Fix js error on mousedown in the editor, props joehoyle, fixes #19165

git-svn-id: https://develop.svn.wordpress.org/trunk@19180 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2011-11-05 19:49:42 +00:00
parent d47f1735e1
commit f31c4b00c8
3 changed files with 2 additions and 2 deletions
@@ -78,7 +78,7 @@
// show editimage buttons
ed.onMouseDown.add(function(ed, e) {
if ( e.target && (e.target.nodeName == 'IMG' || e.target.firstChild.nodeName == 'IMG') ) {
if ( e.target && ( e.target.nodeName == 'IMG' || (e.target.firstChild && e.target.firstChild.nodeName == 'IMG') ) ) {
mouse = {
x: e.clientX,
y: e.clientY,