I think whitespace would improve readability here `var protocols = Ext.isString(values) ? values.split('\n') : values;`

Also this appears to be the same code as above, perhaps a new Object is required?