Source: control/controlToken.js

/**
 * @author    Wolfgang Kowarschick <kowa@hs-augsburg.de>
 * @copyright 2017 - 2018
 * @license   CC-BY-NC-SA-4.0
 */

/**
 * @module control/controlToken
 */

import {tokenClick} from '../logic/logic';

/**
 * @function
 * @static
 *
 * @param {ViewToken} p_token - the view of the token
 */
function controlToken(p_token)
{ p_token.addEventListener('pointerdown', () => tokenClick(p_token.model)); }

export {controlToken};