editor: canvas fix - fix selecting node without direct text node child
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Wed, 4 Jun 2014 12:03:31 +0000 (14:03 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Wed, 4 Jun 2014 12:03:31 +0000 (14:03 +0200)
commitc6526aebeee1d516b8bd7c793fecda2fcb80bbdf
tree51b4bd0d4a33ebb69ce4d2aff3a6e258e62346b2
parent6003b8824fdcba0d59db6681282c7d2d7f2bae1c
editor: canvas fix - fix selecting node without direct text node child

Without this fix, clicking element without direct text child element but
with children containing text nodes resulted in selecting this
child text element (while visual indication for the user was that the
requested element was selected).
src/editor/modules/documentCanvas/canvas/canvas.js
src/editor/modules/documentCanvas/canvas/genericElement.js