fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixing wrapping text when text not in first node of its parent
[fnpeditor.git]
/
modules
/
documentCanvas
/
canvasNode.js
diff --git
a/modules/documentCanvas/canvasNode.js
b/modules/documentCanvas/canvasNode.js
index
2b108a1
..
d0e54ff
100644
(file)
--- a/
modules/documentCanvas/canvasNode.js
+++ b/
modules/documentCanvas/canvasNode.js
@@
-45,7
+45,7
@@
CanvasNode.prototype.setContent = function(content) {
}
\r
\r
CanvasNode.prototype.isSame = function(other) {
\r
}
\r
\r
CanvasNode.prototype.isSame = function(other) {
\r
- return (other instanceof CanvasNode) && this.dom.get(0)
.isSameNode(other.dom.get(0)
);
\r
+ return (other instanceof CanvasNode) && this.dom.get(0)
=== other.dom.get(0
);
\r
}
\r
\r
CanvasNode.prototype.children = function() {
\r
}
\r
\r
CanvasNode.prototype.children = function() {
\r
@@
-73,6
+73,10
@@
CanvasNode.prototype.parents = function() {
};
\r
\r
\r
};
\r
\r
\r
+CanvasNode.prototype.isOfClass = function(klass) {
\r
+ return this.getClass() && this.getClass().substr(0, klass.length) === klass;
\r
+}
\r
+
\r
return {
\r
create: function(desc) {
\r
return new CanvasNode(desc);
\r
return {
\r
create: function(desc) {
\r
return new CanvasNode(desc);
\r