sneakyfildy
24 Jul 2012, 12:06 AM
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.form.field.TextArea
stripReturns: function(value){ if (value) { value = value.replace(this.returnRe, ''); } return value; } (http://docs.sencha.com/ext-js/4-1/#!/api/Ext.form.field.TextArea)When value in textarea is number exception is thrown and all fails.
Wheres the hidden reason for doing .replace on any value type? Why there's no safety blocks? Textarea is only for text input?
stripReturns: function(value){ if (value) { value = value.replace(this.returnRe, ''); } return value; } (http://docs.sencha.com/ext-js/4-1/#!/api/Ext.form.field.TextArea)When value in textarea is number exception is thrown and all fails.
Wheres the hidden reason for doing .replace on any value type? Why there's no safety blocks? Textarea is only for text input?