Source: models/uibuilder/heroslider.js

define('application/models/uibuilder/heroslider', [
    'rofl/models/api/abstract',
    'application/models/broadcast',
    'application/components/uibuilder'
], function (
    Class,
    Broadcast,
    UIBuilder
) {
    'use strict';

    return Class.extend({

        /**
         * Initialises the Hero model.
         *
         * @param {Array} data - The slider data.
         */
        init: function (data) {
            this._items = data;
        },

        /**
         * Returns the type of widget this model to be used with.
         *
         * @returns {string} - The type of widget.
         */
        getWidgetType: function () {
            return UIBuilder.WIDGET_TYPES.HERO_SLIDER;
        },

        /**
         * Returns the item.
         *
         * @returns {Object} - The actual hero items.
         */
        getItems: function () {
            return this._items;
        }
    });
});