Results 1 to 2 of 2
  1.    #1  
    I added an app assistant so that I can have a stage in the background that runs updates. Since then, none of my activity buttons work correctly. I can't deactivate them using "buttonWidget.mojo.deactivate()", instead the app just hangs and the spinner continues. Does anyone know what to use instead??? Here is an example...

    In setup function...
    Code:
    // BUTTON: login
    
      var loginAttributes =
      {
        type: Mojo.Widget.activityButton
      };
    
      this.loginModel =
      {
        buttonLabel: 'Login',
        buttonClass: 'affirmative',
        disabled: false
      };
    
      this.controller.setupWidget('login', loginAttributes, this.loginModel);
      this.controller.listen('login', Mojo.Event.tap, this.loginHandler.bindAsEventListener(this));
    In a handler...
    Code:
    login.mojo.deactivate();
    MoBill - Use your Authorize.net account to bill your customers with your webOS device!!
    MoJack - Track your lost or stolen webOS device from anywhere!
    Time to get VIRAL
  2.    #2  
    Never mind. Of course after trying to figure this out all night I find the answer 5 minutes after I post here. It should be...

    Code:
    this.controller.get('login').mojo.deactivate();
    MoBill - Use your Authorize.net account to bill your customers with your webOS device!!
    MoJack - Track your lost or stolen webOS device from anywhere!
    Time to get VIRAL

Posting Permissions