(parent, name, attributes)
| 31093 | extend(XMLElement, superClass); |
| 31094 | |
| 31095 | function XMLElement(parent, name, attributes) { |
| 31096 | XMLElement.__super__.constructor.call(this, parent); |
| 31097 | if (name == null) { |
| 31098 | throw new Error("Missing element name. " + this.debugInfo()); |
| 31099 | } |
| 31100 | this.name = this.stringify.eleName(name); |
| 31101 | this.attributes = {}; |
| 31102 | if (attributes != null) { |
| 31103 | this.attribute(attributes); |
| 31104 | } |
| 31105 | if (parent.isDocument) { |
| 31106 | this.isRoot = true; |
| 31107 | this.documentObject = parent; |
| 31108 | parent.rootObject = this; |
| 31109 | } |
| 31110 | } |
| 31111 | |
| 31112 | XMLElement.prototype.clone = function() { |
| 31113 | var att, attName, clonedSelf, ref1; |
nothing calls this directly
no outgoing calls
no test coverage detected