Tried that here,

https://github.com/chrispetsos/prefsEditors/commit/68cd3194c010204141f62608a6a8e9ae34bc69f7

but it didn't work... "gpii.uiOptions.panels.arrayMergePolicy" is again never invoked. Also tried removing the repeatingSelectors from the adjusters themselves but resulted in none of the two working.

Date: Wed, 23 Oct 2013 05:35:19 -0700
From: notifications@github.com
To: prefsEditors@noreply.github.com
CC: chrispetsos@msn.com
Subject: Re: [prefsEditors] GPII-187, GPII-188, GPII-225, GPII-227 contributions (#7)

In src/pmt/js/PMT.js:

> +                },
> +                resetButtonText: {
> +                    expander: {
> +                        func: "gpii.uiOptions.pmt.lookupMsg",
> +                        args: ["{uiOptionsLoader}.msgBundle", "resetButtonText"]
> +                    }
> +                },
> +                cancelButtonText: {
> +                    expander: {
> +                        func: "gpii.uiOptions.pmt.lookupMsg",
> +                        args: ["{uiOptionsLoader}.msgBundle", "cancelButtonText"]
> +                    }
> +                }
> +            },
> +            components: {
> +                increaseSizeExtraAdjustersComponent: {

I was wondering why this didn't work for you and saw that you had put the configuration in the wrong spot. Looking back at my example though I realized I missed something. Sorry about that, and I'll correct it here.


    gpii.uiOptions.panels.arrayMergePolicy = function (target, source) {
        target = fluid.makeArray(target);
        source = fluid.makeArray(source);
        fluid.each(source, function (selector) {
            if($.inArray(selector, target) < 0) {
                target.push(selector);
            }
        });
        return target;
    };

    fluid.defaults("gpii.uiOptions.panels.increaseSize", {
        gradeNames: [...],
        // top level option
        mergePolicy: {
            repeatingSelectors: gpii.uiOptions.panels.arrayMergePolicy
        },
        protoTree: {...}
        ...
    })


—
Reply to this email directly or view it on GitHub.