Explorar el Código

Warn about unknown properties

Sebastián Katzer hace 11 años
padre
commit
2efe9232ee
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      www/local-notification-util.js

+ 1 - 0
www/local-notification-util.js

@@ -103,6 +103,7 @@ exports.mergeWithDefaults = function (options) {
     for (key in options) {
         if (!defaults.hasOwnProperty(key)) {
             delete options[key];
+            console.warn('Unknown property: ' + key);
         }
     }