ignore underscored options - fixes #29

This commit is contained in:
Sebastian McKenzie
2015-01-28 14:14:33 +11:00
parent efda5ca897
commit 8f69e59f29

View File

@@ -82,7 +82,7 @@ File.normaliseOptions = function (opts) {
opts = clone(opts);
for (var key in opts) {
if (File.validOptions.indexOf(key) < 0) {
if (key[0] !== "_" && File.validOptions.indexOf(key) < 0) {
throw new ReferenceError("Unknown option: " + key);
}
}