rem: } 
add: }; 
context: Data.FormValidator.Results.prototype.msgs = function (controls) {    var profile = new Object();    profile.prefix  = '';    profile.missing = 'Missing';    profile.invalid = 'Invalid';    profile.invalid_separator = ' ';    profile.format  = '<span style="color:red;font-weight:bold"><span class="dfv_errors">* %s</span></span>';    profile.constraints = new Object();    if ( (typeof(this.profile.msgs)=="object") &&         (! this.isArray(this.profile.msgs)) ) {        for (key in this.profile.msgs) {            profile[key] = this.profile.msgs[key];        }    }    var msgs = new Object();    /* Add invalid messages to hash                          *     * look at all the constraints, look up their messages   *     * (or provide a default)                                *     * add field + formatted constraint message to hash      */    if (this.has_invalid()) {        for (field in this.invalid) {            var invalidTests = new Array();            for (i in this.invalid[field]) {                var invalidName = this.invalid[field][i];                var err_msg = profile.constraints[invalidName] || profile.invalid;                invalidTests[invalidTests.length] = err_msg;            }            msgs[field] = invalidTests.join( profile.invalid_separator );        }    }    /* Add missing messages, if any */    if (this.has_missing()) {        for (field in this.missing) {            msgs[field] = profile.missing;        }    }    return msgs;}
meta: 10202	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10202/58de0c9ccbbb772eb815632807e8097075988022/FormValidator.js/buggy/Data.FormValidator/lib/Data/FormValidator.js