Untitled

 avatar
unknown
plain_text
a year ago
588 B
2
Indexable
define( function( require ){
    "use strict";

    return {

        discountModel: {
            fields: {
                first: {
                    name: "first",
                    value: "First"
                second: {
                    name: "second",
                    value: "Second",
                    callback: function() {
                        if(Math.floor(Math.random() * 1) === 1) {
                            // change the value of fields.first to "not first"
                        }
                    }
                }
            }
        }
    }
}
Editor is loading...
Leave a Comment