Snippet for a better alert

I’m lazy, so I rather type: alert('Hello!'); then: Ti.UI.createAlertDialog({message: 'Hello!'}).show(); Custom title However, for localized apps or if for other reasons I want to have another title and/or button label then the default Alert and OK, this doesn’t work. So in my classic app.js or Alloy alloy.js I have: function alert(message, title, ok) { Ti.UI.createAlertDialog({ […]