{"size": 1264, "ext": "js", "max_stars_repo_path": "public/js/src/hc-backend/form/_HasPageFieldsMixin.js", "max_stars_repo_name": "huskycmf/hc-backend", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/js/src/hc-backend/form/_HasPageFieldsMixin.js", "max_issues_repo_name": "huskycmf/hc-backend", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/js/src/hc-backend/form/_HasPageFieldsMixin.js", "max_forks_repo_name": "huskycmf/hc-backend", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26.8936170213, "max_line_length": 82, "alphanum_fraction": 0.3860759494}
define([
    "dojo/_base/declare"
], function(declare) {

    return declare(null, {

        _setValueAttr: function (values) {
            try {
                for (var key in values.page) {
                    if (values.page.hasOwnProperty(key)) {
                        values[key] = values.page[key];
                    }
                }

                delete values.page;

                this.inherited(arguments);
            } catch (e) {
                console.error(this.declaredClass, arguments, e);
                throw e;
            }
        },

        _getValueAttr: function () {
            try {
                var values = this.inherited(arguments), key;

                for (key in values) {
                    if (values.hasOwnProperty(key) && key.indexOf('page') === 0) {
                        if (values.page === undefined) {
                            values.page = {};
                        }

                        values.page[key] = values[key];
                        delete values[key];
                    }
                }

                return values;
            } catch (e) {
                console.error(this.declaredClass, arguments, e);
                throw e;
            }
        }
    });
});
