resetDecoratedButton (name, asset, functionToCall, context, ...callValues) {
    var wrapped = this.wrapFunctionValueArray(
      functionToCall, context, callValues
    )
    var rd = new ResetDecorator({
      action: {
        function: wrapped,
        context: this
      },
      controller: this
    })
    this.button(name, rd.act, rd, asset)
  }
/**
   * Automatically creates a button with 
   * reset decorator on with given parameters
   *
   * @param {*} name text in button
   * @param {*} asset
   * @param {*} functionToCall the function to call before resetting the menu
   * @param {*} context context for the function
   * @param {*} callValues values the function is called with
   */
Automatically creates a button with
reset decorator on with given parameters


Automatically creates a button with reset decorator on with given parameters
resetDecoratedButton (name, asset, functionToCall, context, ...callValues) {
    var wrapped = this.wrapFunctionValueArray(
      functionToCall, context, callValues
    )
    var rd = new ResetDecorator({
      action: {
        function: wrapped,
        context: this
      },
      controller: this
    })
    this.button(name, rd.act, rd, asset)
  }
resetDecoratedButton ( name , asset , functionToCall , context , ... callValues ) { var wrapped = this . wrapFunctionValueArray ( functionToCall , context , callValues ) var rd = new ResetDecorator ( { action : { function : wrapped , context : this } , controller : this } ) this . button ( name , rd . act , rd , asset ) }
Automatically creates a button with
 reset decorator on with given parameters
Automatically creates a button with reset decorator on with given parameters