diff configuration.js @ 10:44889cfb2f8c

Fix getItem method.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 27 Aug 2010 01:02:56 +0200
parents 781ac4f1e304
children 447db2e8c622
line wrap: on
line diff
--- a/configuration.js
+++ b/configuration.js
@@ -205,7 +205,8 @@ config.Configuration = function(def, par
 	}
 	if (params)
 		for (var i in params)
-			this[i] = params[i];
+			if (typeof def[i] != 'undefined')
+				this[i] = params[i];
 };
 
 config.enabled = function(feature) {