code: function(element, namespace) {
  			var Klass = this,
  				regexp = new RegExp('^data-' + namespace + '-(.*)'),
  				config = {};
  			if (element && element.attributes) {
  				$.each(element.attributes, function(){
  					var match = this.name.match(regexp);
  					if (match) {
  						var val = this.value,
  							name = $.camelCase(match[1]);
  						if ($.inArray(name, Klass.functionAttributes) >= 0) {  /* jshint -W054 */
  							val = new Function(val);                           /* jshint +W054 */
  						} else {
  							try { val = JSON.parse(val); }
  							catch(e) {}
  						}
  						config[name] = val;
  					}
  				});
  			}
  			return config;
  		}
docs: * class methods ** /* read element's attributes starting with data-featherlight-