B2G/gecko/browser/devtools/commandline/CmdCookie.jsm
/**
 * Create a handler to update the requisition to contain the text held in the
 * first matching data-command attribute under the currentTarget of the event.
 * @param context Either a Requisition or an ExecutionContext or another object
 * that contains an |update()| function that follows a similar contract.
 */
Create a handler to update the requisition to contain the text held in the
first matching data-command attribute under the currentTarget of the event.
@param context Either a Requisition or an ExecutionContext or another object
that contains an |update()| function that follows a similar contract.
Create a handler to update the requisition to contain the text held in the first matching data - command attribute under the currentTarget of the event . @param context Either a Requisition or an ExecutionContext or another object that contains an |update () | function that follows a similar contract .
function createUpdateHandler(context) {
  return function(ev) {
    withCommand(ev.currentTarget, function(command) {
      context.update(command);
    });
  }
}
function createUpdateHandler ( context ) { return function ( ev ) { withCommand ( ev . currentTarget , function ( command ) { context . update ( command ) ; } ) ; } }
Create a handler to update the requisition to contain the text held in the
 first matching data-command attribute under the currentTarget of the event.
Create a handler to update the requisition to contain the text held in the first matching data - command attribute under the currentTarget of the event .