mardi 30 septembre 2014

Multiple explicit formula deep binds failing.



  1. Thank you for reporting this bug. We will make it our priority to review this report.







  2. Default Multiple explicit formula deep binds failing.



    Multiple explicit formula deep binds failing.





    The following View Model formula works perfectly fine:


    Code:



    formulas: {
    recordDirty: {
    bind: {
    bindTo: '{someRecord}',
    deep : true
    },
    get: function(record) {
    return record.dirty;
    }
    },
    }



    However if you try to deep-bind 2 records (or other object), it is currently not possible and will result in invalid data passed to the getter:

    Code:



    formulas: {
    twoRecordsDirty: {
    bind: {
    recordA: {
    bindTo: '{someRecord}',
    deep : true
    },
    recordB: {
    bindTo: '{anotherRecord}',
    deep : true
    },

    },
    get: function(records) {
    return recordA.dirty || recordB.dirty;
    }
    },
    }








    Last edited by Artur Bodera (Joust); Today at 3:10 AM.


    Reason: because of this archaic forum software breaks my markup every single time ...











Multiple explicit formula deep binds failing.

Aucun commentaire:

Enregistrer un commentaire