diff options
| author | Nathan Dinsmore <queryselector@gmail.com> | 2013-04-15 20:29:03 -0400 |
|---|---|---|
| committer | Nathan Dinsmore <queryselector@gmail.com> | 2013-04-15 21:06:44 -0400 |
| commit | 8342c06e274333910fd97a92dd44cecfe8494511 (patch) | |
| tree | 4189c61cb13c21c50c13acdda6eaf78afbf5a0ae /xml.js | |
| parent | 15718f44a30a022a5f45001f3fd2d506da504ff1 (diff) | |
| download | snap-8342c06e274333910fd97a92dd44cecfe8494511.tar.gz snap-8342c06e274333910fd97a92dd44cecfe8494511.zip | |
Fixed #47
Diffstat (limited to 'xml.js')
| -rw-r--r-- | xml.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -246,7 +246,8 @@ XML_Element.prototype.toString = function (isFormatted, indentationLevel) { // attributes, if any for (key in this.attributes) { - if (this.attributes.hasOwnProperty(key) && this.attributes[key]) { + if (Object.prototype.hasOwnProperty.call(this.attributes, key) + && this.attributes[key]) { result += ' ' + key + '="' + this.attributes[key] + '"'; } } |
