Skip to content

Commit f0da8c7

Browse files
fix($urlMatcherFactory): fix ParamSet.$$keys
- ignore all keys in ParamSet.prototype
1 parent a3b38eb commit f0da8c7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/urlMatcherFactory.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ function $UrlMatcherFactory() {
946946
},
947947
$$keys: function () {
948948
var keys = [], chain = [], parent = this,
949-
ignore = ["$$keys", "$$values", "$$equals", "$$validates", "$$parent"];
949+
ignore = objectKeys(ParamSet.prototype);
950950
while (parent) { chain.push(parent); parent = parent.$$parent; }
951951
chain.reverse();
952952
forEach(chain, function(paramset) {
@@ -981,7 +981,8 @@ function $UrlMatcherFactory() {
981981
result = result && (isOptional || param.type.is(val));
982982
});
983983
return result;
984-
}
984+
},
985+
$$parent: undefined
985986
};
986987

987988
this.ParamSet = ParamSet;

0 commit comments

Comments
 (0)