function clone(o) {
    var r = {};
    for (var k in o) {
      if (o.hasOwnProperty(k)) {
        r[k] = o[k];
      }
    }

    return r;
  }
// Simple object cloning function for simple objects
Simple object cloning function for simple objects
Simple object cloning function for simple objects
function clone(o) {
    var r = {};
    for (var k in o) {
      if (o.hasOwnProperty(k)) {
        r[k] = o[k];
      }
    }
    return r;
  }
function clone ( o ) { var r = { } ; for ( var k in o ) { if ( o . hasOwnProperty ( k ) ) { r [ k ] = o [ k ] ; } } return r ; }
Simple object cloning function for simple objects
Simple object cloning function for simple objects