[TIMOB-5552] MobileWeb: Event 'click' and 'dblclick' don't work with Window.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-05-25T02:00:27.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | MobileWeb |
Labels | n/a |
Reporter | Misha Vasko |
Assignee | Maxim Negadaylov |
Created | 2011-05-24T05:40:48.000+0000 |
Updated | 2017-03-09T19:47:41.000+0000 |
Description
Events 'click' and 'dblclick' not works with window object. Nothing happens in a window when clicking on it.
win = Ti.UI.currentWindow;
win.addEventListener('click', function(){
win.backgroundColor = 'red';
alert('click works!');
})
win.addEventListener('dblclick', function(){
win.backgroundColor = 'green';
alert('dblclick works!');
})
Closing ticket as fixed.