Skip to content
This repository has been archived by the owner on Jan 16, 2018. It is now read-only.

Commit

Permalink
Merge pull request #27 from gnarf/concat-hash
Browse files Browse the repository at this point in the history
Fix ConcatSource.updateHash to work with strings
  • Loading branch information
sokra committed Dec 6, 2016
2 parents 8664961 + 11998b8 commit e059f00
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/ConcatSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ ConcatSource.prototype.listMap = function(options) {

ConcatSource.prototype.updateHash = function(hash) {
this.children.forEach(function(item) {
item.updateHash(hash);
if (typeof item === "string") {
hash.update(item)
} else {
item.updateHash(hash);
}
});
};

0 comments on commit e059f00

Please sign in to comment.