Permalink
Browse files

Replace location check unintentionally removed in prior commit

  • Loading branch information...
1 parent 9e7cd0f commit df412a86ac0291c9eedb897cb153b76cb5926dc7 @73rhodes 73rhodes committed Jun 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/wsdl.js
View
@@ -291,7 +291,7 @@ BindingElement.prototype.addChild = function(child) {
}
}
PortElement.prototype.addChild = function(child) {
- if (child.name === 'address') {
+ if (child.name === 'address' && typeof(child.$location) !== 'undefined') {
this.location = child.$location;
}
}

0 comments on commit df412a8

Please sign in to comment.