Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5619] MobileWeb: Can't create alertDialog by method Ti.UI.createAlertDialog

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2011-05-31T00:33:45.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterMisha Vasko
AssigneeMaxim Negadaylov
Created2011-05-30T07:58:49.000+0000
Updated2017-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();

Comments

  1. Lee Morris 2017-03-09

    Closing ticket as invalid.

JSON Source