updateModel(e) {
		var attr = e.target.name;
		var value = e.target.value;

		// for certain options, parse it from a string
		if (/^(customselectors|colors|dynamicColorOnly)$/.test(attr)) {
			try {
				value = JSON.parse(value);
			} catch(e) {}
		}

		this.model.set(attr, value);
		this.model.setLocalStorage();
	}
/**
	 * update a preference from a changed input
	 * @param  {Event} e
	 */
update a preference from a changed input
@param  {Event} e
update a preference from a changed input @param { Event } e
updateModel(e) {
		var attr = e.target.name;
		var value = e.target.value;
		if (/^(customselectors|colors|dynamicColorOnly)$/.test(attr)) {
			try {
				value = JSON.parse(value);
			} catch(e) {}
		}
		this.model.set(attr, value);
		this.model.setLocalStorage();
	}
updateModel ( e ) { var attr = e . target . name ; var value = e . target . value ; if ( / ^(customselectors|colors|dynamicColorOnly)$ / . test ( attr ) ) { try { value = JSON . parse ( value ) ; } catch ( e ) { } } this . model . set ( attr , value ) ; this . model . setLocalStorage ( ) ; }
update a preference from a changed input
 @param  {Event} e
update a preference from a changed input @param { Event } e
// for certain options, parse it from a string