FokkeZB / nl.fokkezb.loading

The widget provides a simple loading mask that can be easily styled and configured.
93 stars 18 forks source link

[Question] Cancelable Callback Not Running #9

Closed ryanbuening closed 10 years ago

ryanbuening commented 10 years ago

I'm trying to use the cancelable argument to display a simple alert, but I'm not able to get it fire. I've tried the following:

Alloy.Globals.loading.show('Loading...', function() {
    alert("cancel!");}
);

and

Alloy.Globals.loading.show('Loading...', cancelled);
function cancelled() {
    alert("cancel!");
};

Neither way worked. Am I not using the callback properly?

FokkeZB commented 10 years ago

Do you have additional information for me?

ryanbuening commented 10 years ago

SDK - 3.2.1.201402041146 Alloy - 1.3.1 Platform - iOS 7.0