[TIMOB-5619] MobileWeb: Can't create alertDialog by method Ti.UI.createAlertDialog
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2011-05-31T00:33:45.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Misha Vasko |
Assignee | Maxim Negadaylov |
Created | 2011-05-30T07:58:49.000+0000 |
Updated | 2017-03-09T23:19:11.000+0000 |
Description
Can't create alertDialog by method Ti.UI.createAlertDialog. The javascript error occurs: Uncaught TypeError: undefined is not a function (anonymous function).
Place of the error in titanium.js:
api.createAlertDialog = function(args){
return new Ti.UI.AlertDialog(args);
};
Example of the alertDialog:
var win = Ti.UI.currentWindow;
var alertDialog = Titanium.UI.createAlertDialog({
message: 'You got mail'
});
alertDialog.show();
Closing ticket as invalid.