Skip to content

Instantly share code, notes, and snippets.

@noahd1
Created March 4, 2010 16:07
Show Gist options
  • Save noahd1/321831 to your computer and use it in GitHub Desktop.
Save noahd1/321831 to your computer and use it in GitHub Desktop.
// add move event listener
tableview.addEventListener('move',function(e)
{
Titanium.API.info("MOVE EVENT!");
//clearTimeout(updateGroupOrder); // does not work, actually triggers the call
var _this = this;
updateGroupsFx = function() {
Titanium.API.info("UPDATE GROUPS!");
for(var i = 0; i < _this.data.length; i++) {
Titanium.API.info("index at " + i + ": " + _this.data[i].title);
}
};
updateGroupOrder = setTimeout(updateGroupsFx, 10000);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment