Source: bemap-listener.js

/**
 * BeNomad BeMap JavaScript API - Listener class
 */

/**
 * @classdesc
 * Base class for listener.
 * @public
 * @constructor
 * @param {object} options Options object.
 * @param {object} options.native native object.
 */
bemap.Listener = function(options) {
    var opts = options || {};

    /**
     * Native map browser event.
     * @type {Object}
     * @protected
     */
    this.native = opts.native ? opts.native : null;

    /**
     * @type {Function}
     * @protected
     */
    this.callback = opts.callback ? opts.callback : null;

    /**
     * @type {String}
     * @protected
     */
    this.key = opts.key ? opts.key : null;

    /**
     * @type {Object}
     * @protected
     */
     this.bemapObject = opts.bemapObject ? opts.bemapObject : null;
};