view core-javascript/core-javascript-work/solution-2-c.js @ 151:9cdf095a283e core-javascript

Convert line endings to CRLF.
author jf3243
date Tue, 01 Nov 2011 09:07:46 +0000
parents 2c8dadc0e26c
children b774913eb242
line wrap: on
line source

var Fields = function(keys){
    this.keys = keys;
};

Fields.prototype = {
    copy_attributes : function(src, tgt){

        var keys = this.keys;
        var i;

        for(i=0; i< keys.length; i++){
            tgt[key] = src['get_' + key]();        
        };
    }
};