Source: events/bookmarkevent.js

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

    var TYPE = '_bookmark';

    return Event.extend({

        /**
         * Initialises the event.
         * This will trigger an event for a specific listener in the form of <contentID>_bookmark, so we can
         * update any progress if an asset is listening for bookmark change.
         *
         * @param {number} contentId - The content ID.
         * @param {number} bookmarkTime - The new bookmark time to update.
         */
        init: function init (contentId, bookmarkTime) {
            init.base.call(this, contentId + TYPE);

            this.contentId = contentId;
            this.bookmarkTime = bookmarkTime;
        }
    });

});