Skip to content

Commit 07e2320

Browse files
authored
Merge pull request #207 from troyfactor4/master
Test suites of other projects (mocha) that include v1.5.0 fail
2 parents 0157f26 + 234bc0b commit 07e2320

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/signed-xml.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ SignedXml.prototype.computeSignature = function(xml, opts, callback) {
713713
prefix = opts.prefix;
714714
attrs = opts.attrs || {};
715715
location = opts.location || {};
716-
existingPrefixes = opts.existingPrefixes || {};
716+
var existingPrefixes = opts.existingPrefixes || {};
717717
// defaults to the root node
718718
location.reference = location.reference || "/*";
719719
// defaults to append action
@@ -820,7 +820,7 @@ SignedXml.prototype.computeSignature = function(xml, opts, callback) {
820820
signatureDoc.insertBefore(self.createSignature(prefix), signedInfoNode.nextSibling)
821821
self.signatureXml = signatureDoc.toString()
822822
self.signedXml = doc.toString()
823-
callback()
823+
callback(null, self)
824824
}
825825
})
826826
}
@@ -1017,4 +1017,4 @@ SignedXml.prototype.getOriginalXmlWithIds = function() {
10171017

10181018
SignedXml.prototype.getSignedXml = function() {
10191019
return this.signedXml
1020-
}
1020+
}

0 commit comments

Comments
 (0)