Source: formatters/search/epgasset.js

define('application/formatters/search/epgasset', [
    'antie/iterator',
    'antie/runtimecontext',
    'application/formatters/epgasset'
], function (
    Iterator,
    RuntimeContext,
    EpgFormatter
) {
    'use strict';

    var layout = RuntimeContext.getCurrentApplication().getLayout().search.asset.live;

    return EpgFormatter.extend({

        /**
         * Formats the widget.
         *
         * @param {Object|Iterator} item - The item.
         * @returns {Object} - The formatted widget.
         */
        format: function format (item) {
            var formatParams = {
                width: layout.width,
                height: layout.height
            };

            return format.base.call(this, item, formatParams);
        }
    });
});