Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
Keeping JSHint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenLooman committed Aug 19, 2012
1 parent 5a807f1 commit 80b31d5
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions lib/xml_recorder.js
Expand Up @@ -18,21 +18,27 @@ XmlRecorder.prototype.stop = function(state) {
XmlRecorder.prototype.onOpenTag = function(node) { XmlRecorder.prototype.onOpenTag = function(node) {
var id; var id;
for (id in this.streams) { for (id in this.streams) {
this.streams[id] += '<' + node.name + '>'; if (this.streams.hasOwnProperty(id)) {
this.streams[id] += '<' + node.name + '>';
}
} }
}; };


XmlRecorder.prototype.onCloseTag = function(tag) { XmlRecorder.prototype.onCloseTag = function(tag) {
var id; var id;
for (id in this.streams) { for (id in this.streams) {
this.streams[id] += '</' + tag + '>'; if (this.streams.hasOwnProperty(id)) {
this.streams[id] += '</' + tag + '>';
}
} }
}; };


XmlRecorder.prototype.onText = function (text) { XmlRecorder.prototype.onText = function (text) {
var id; var id;
for (id in this.streams) { for (id in this.streams) {
this.streams[id] += text; if (this.streams.hasOwnProperty(id)) {
this.streams[id] += text;
}
} }
}; };


Expand Down

0 comments on commit 80b31d5

Please sign in to comment.