comparison 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
comparison
equal deleted inserted replaced
9:a6429f48e403 10:44889cfb2f8c
203 this[i] = def[i].value; 203 this[i] = def[i].value;
204 } 204 }
205 } 205 }
206 if (params) 206 if (params)
207 for (var i in params) 207 for (var i in params)
208 this[i] = params[i]; 208 if (typeof def[i] != 'undefined')
209 this[i] = params[i];
209 }; 210 };
210 211
211 config.enabled = function(feature) { 212 config.enabled = function(feature) {
212 for (var i in config.activated) 213 for (var i in config.activated)
213 if (typeof i == 'string' && feature == config.activated[i]) 214 if (typeof i == 'string' && feature == config.activated[i])