dist/melonjs.js
function update(dt) {
         // call the parent constructor
         var updated = this._super(me.Sprite, "update", [dt]); // check if the button was updated


         if (this.updated) {
           // clear the flag
           if (!this.released) {
             this.updated = false;
           }

           return true;
         } // else only return true/false based on the parent function


         return updated;
       }
function update(dt) {
         // call the parent constructor
         var updated = this._super(me.Sprite, "update", [dt]); // check if the button was updated


         if (this.updated) {
           // clear the flag
           if (!this.released) {
             this.updated = false;
           }

           return true;
         } // else only return true/false based on the parent function


         return updated;
       }
function update ( dt ) { // call the parent constructor var updated = this . _super ( me . Sprite , "update" , [ dt ] ) ; // check if the button was updated if ( this . updated ) { // clear the flag if ( ! this . released ) { this . updated = false ; } return true ; } // else only return true/false based on the parent function return updated ; }
return true if the object has been clicked
@ignore
return true if the object has been clicked