Skip to content

Commit

Permalink
fix($urlMatcherFactory): fix ParamSet.$$keys
Browse files Browse the repository at this point in the history
- ignore all keys in ParamSet.prototype
  • Loading branch information
christopherthielen committed Nov 14, 2014
1 parent a3b38eb commit f0da8c7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/urlMatcherFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ function $UrlMatcherFactory() {
},
$$keys: function () {
var keys = [], chain = [], parent = this,
ignore = ["$$keys", "$$values", "$$equals", "$$validates", "$$parent"];
ignore = objectKeys(ParamSet.prototype);
while (parent) { chain.push(parent); parent = parent.$$parent; }
chain.reverse();
forEach(chain, function(paramset) {
Expand Down Expand Up @@ -981,7 +981,8 @@ function $UrlMatcherFactory() {
result = result && (isOptional || param.type.is(val));
});
return result;
}
},
$$parent: undefined
};

this.ParamSet = ParamSet;
Expand Down

0 comments on commit f0da8c7

Please sign in to comment.