FokkeZB / nl.fokkezb.loading

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

Cancelable is not a function and cannot be called #14

Closed DavidHe1127 closed 10 years ago

DavidHe1127 commented 10 years ago

As documented, since 1.6 the meaning of the second argument the reverse (cancelable instead of blocking) and can also be a callback, which would be called if the user taps the mask to cancel the loading activity

Alloy.Globals.loading.show('Your message', true); //second param is for cancelable

However, there is a lack of function type validation against pass-in argument cancelable before call it in window.js which leads to the red screen. See below if (cancelable) { cancelable(); //supposed to be typeof cancelable === "function" && cancelable(); }

Please double check and confirm this bug.

Thanks