Add 'aeq.project.getSelectedCompsOrAll()' method?

Issue #36 resolved
Zack Lovatt
created an issue
    /**
     * Gets selected comps, or all comps if none is selected.
     *
     * @method
     * @memberof aeq
     * @return {aeq.arrayEx}  ArrayEx of Comp objects
     */
    function getSelectedCompsOrAll () {
        var comps = aeq.project.getSelectedComps();

        if (comps.length == 1)
            comps = aeq.arrayEx(comps);

        if (aeq.isEmpty(comps))
            return aeq.getCompositions();

        return comps;
    }

Comments (1)

  1. Log in to comment