fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanup: removing unused vkbeautify library
[fnpeditor.git]
/
src
/
editor
/
modules
/
documentCanvas
/
canvas
/
genericElement.js
diff --git
a/src/editor/modules/documentCanvas/canvas/genericElement.js
b/src/editor/modules/documentCanvas/canvas/genericElement.js
index
878e140
..
4dfbe59
100644
(file)
--- a/
src/editor/modules/documentCanvas/canvas/genericElement.js
+++ b/
src/editor/modules/documentCanvas/canvas/genericElement.js
@@
-80,13
+80,18
@@
$.extend(generic, {
return toret;
},
return toret;
},
- getVerticallyFirstTextElement: function() {
+ getVerticallyFirstTextElement: function(
params
) {
var toret;
var toret;
+
+ params = _.extend({
+ considerChildren: true
+ }, params);
+
this.children().some(function(child) {
if(child instanceof documentElement.DocumentTextElement) {
toret = child;
return true; // break
this.children().some(function(child) {
if(child instanceof documentElement.DocumentTextElement) {
toret = child;
return true; // break
- } else {
+ } else
if(params.considerChildren)
{
toret = child.getVerticallyFirstTextElement();
if(toret) {
return true; // break
toret = child.getVerticallyFirstTextElement();
if(toret) {
return true; // break