Commit 2efe9232 by Sebastián Katzer

Warn about unknown properties

parent d7c21e97
......@@ -103,6 +103,7 @@ exports.mergeWithDefaults = function (options) {
for (key in options) {
if (!defaults.hasOwnProperty(key)) {
delete options[key];
console.warn('Unknown property: ' + key);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment