Skip to content

Commit

Permalink
adding lookup object for properties to be ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
dbo committed May 26, 2014
1 parent f5d45ff commit be8f5b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/jsonselect.js
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@
}
} else {
for (k in obj) {
if (obj.hasOwnProperty(k)) {
if (!exports.ignore[k] && obj.hasOwnProperty(k)) {
forEach(a0, obj[k], fun, k, undefined, undefined, obj);
}
}
Expand Down Expand Up @@ -560,6 +560,7 @@

exports._lex = lex;
exports._parse = parse;
exports.ignore = {};
exports.match = function (sel, arr, obj) {
if (!obj) { obj = arr; arr = undefined; }
return compile(sel, arr).match(obj);
Expand Down

0 comments on commit be8f5b4

Please sign in to comment.