Closed brandonneil closed 8 years ago
$.showActions is available only on iOS, so here I'm checking to make sure we're on iOS before we set the enabled property to true.
This prevents the following runtime error on Android: Location: [91,31] alloy/widgets/be.grincheux.tiBrowser/controllers/widget.js
Message: Uncaught TypeError: Cannot set property 'enabled' of undefined
Source: $showActions.enabled = true;
$.showActions is available only on iOS, so here I'm checking to make sure we're on iOS before we set the enabled property to true.
This prevents the following runtime error on Android: Location: [91,31] alloy/widgets/be.grincheux.tiBrowser/controllers/widget.js
Message: Uncaught TypeError: Cannot set property 'enabled' of undefined
Source: $showActions.enabled = true;