constructor()

in public/src/js/models/group.js [8:22]


    constructor(opts = {}) {
        super();

        this.items = ko.isObservable(opts.items) && opts.items.push ? opts.items : ko.observableArray(opts.items);
        this.underDrag = ko.observable();
        this.underControlDrag = ko.observable();

        this.index = opts.index || 0;
        this.name = opts.name || '';
        this.parent = opts.parent;
        this.parentType = opts.parentType;
        this.keepCopy = opts.keepCopy;
        this.front = opts.front;
        this.opts = opts;
    }