keydragzoom/src/keydragzoom.js
function (obj, vals) {
    if (obj && vals) {
      for (var x in vals) {
        if (vals.hasOwnProperty(x)) {
          obj[x] = vals[x];
        }
      }
    }
    return obj;
  }
function (obj, vals) {
    if (obj && vals) {
      for (var x in vals) {
        if (vals.hasOwnProperty(x)) {
          obj[x] = vals[x];
        }
      }
    }
    return obj;
  }
function ( obj , vals ) { if ( obj && vals ) { for ( var x in vals ) { if ( vals . hasOwnProperty ( x ) ) { obj [ x ] = vals [ x ] ; } } } return obj ; }
Set the properties of an object to those from another object.
@param {Object} obj The target object.
@param {Object} vals The source object.
Set the properties of an object to those from another object .