Skip to content

Instantly share code, notes, and snippets.

@geecu geecu/app.js
Created Mar 27, 2010

Embed
What would you like to do?
var t = setTimeout(function()
{
var alert = Titanium.UI.createAlertDialog(
{
title: 'Timeout fired!',
message: ''
}
);
alert.show();
}, 1000000);
var b = Ti.UI.createButton(
{
title:'Trigger it!',
width: 200,
height: 40
}
);
b.addEventListener('click', function()
{
clearTimeout(t);
}
);
var win1 = Titanium.UI.createWindow();
win1.add(b);
win1.open();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.