# all files / src/core/ Base.js

100% Statements 6/6
100% Branches 0/0
100% Functions 2/2
100% Lines 6/6

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28

    1×

    593×

    1×

    593×

    1×
    1×

     import extendMixin from './mixin/extend';
    import notifierMixin from './mixin/notifier';
    import util from './util';

    /**
     * Base class of all objects
     * @constructor
     * @alias clay.core.Base
     * @mixes clay.core.mixin.notifier
     */
    var Base = function () {
        /**
         * @type {number}
         */
        this.__uid__ = util.genGUID();
    };

    Base.__initializers__ = [
        function (opts) {
            util.extend(this, opts);
        }
    ];

    util.extend(Base, extendMixin);
    util.extend(Base.prototype, notifierMixin);

    export default Base;