Project: titanium
Issue TIMOB-8303: iOS: Text Field/Area needs hasText method
h2. Problem TextField and TextArea hasText() method not functioning. h2. Test Case {code:lang=javascript|title=app.js} var win = Ti.UI.createWindow({	backgroundColor : 'white',	exitOnClose : true,	fullscreen : false,	layout : 'vertical',	title : 'hasText Demo' }); var textField = Ti.UI.createTextField({ color: '#336699', backgroundColor:'#eee', top: 10, left: 10, width: 250, height: 60, borderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED }); win.add(textField); var textArea = Ti.UI.createTextArea({ borderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED, backgroundColor:'#eee', color: '#336699', top: 10, left: 10, width: 250, height: 200 }); win.add(textArea); win.open(); textField.addEventListener('change', function(e){ Ti.API.info('hasText? ' + e.source.hasText()); }); textArea.addEventListener('change', function(e){ Ti.API.info('hasText? ' + e.source.hasText()); }); {code}
Story points: 1