Source: events/focusevent.js

/**
 * @fileOverview Requirejs module containing the antie.events.FocusEvent class.
 * @preserve Copyright (c) 2013-present British Broadcasting Corporation. All rights reserved.
 * @license See https://github.com/fmtvp/tal/blob/master/LICENSE for full licence
 */

define(
    'antie/events/focusevent',
    ['antie/events/event'],
    function(Event) {
        'use strict';

        /**
         * Class of events raised when focus is gained by a {@link antie.widgets.Button}.
         * @name antie.events.FocusEvent
         * @class
         * @extends antie.events.Event
         * @param {antie.widgets.Button} target The button which gained focus.
         */
        return Event.extend(/** @lends antie.events.FocusEvent.prototype */ {
            /**
             * @constructor
             * @ignore
             */
            init: function init (target) {
                this.target = target;
                init.base.call(this, 'focus');
            }
        });
    }
);