}\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
\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