new version of extend

This commit is contained in:
Manuel Araoz 2015-01-13 20:18:28 -03:00
parent f2eeb7664e
commit b37a8d2f32
1 changed files with 2 additions and 2 deletions

View File

@ -25,6 +25,7 @@ var traverseNode = function(parent, errorDefinition) {
if (errorDefinition.errors) {
childDefinitions(NodeError, errorDefinition.errors);
}
return NodeError;
};
/* jshint latedef: false */
@ -56,6 +57,5 @@ traverseRoot(bitcore.Error, data);
module.exports = bitcore.Error;
module.exports.extend = function(spec) {
traverseNode(bitcore.Error, spec);
return bitcore.Error;
return traverseNode(bitcore.Error, spec);
};