examples/touch/hammer.js
function extend(dest, src, merge) {
    for(var key in src) {
      if(dest[key] !== undefined && merge) {
        continue;
      }
      dest[key] = src[key];
    }
    return dest;
  }
function extend(dest, src, merge) {
    for(var key in src) {
      if(dest[key] !== undefined && merge) {
        continue;
      }
      dest[key] = src[key];
    }
    return dest;
  }
function extend ( dest , src , merge ) { for ( var key in src ) { if ( dest [ key ] !== undefined && merge ) { continue ; } dest [ key ] = src [ key ] ; } return dest ; }
extend method,
also used for cloning when dest is an empty object
@param   {Object}    dest
@param   {Object}    src
@parm  {Boolean}  merge    do a merge
@returns {Object}    dest
extend method also used for cloning when dest is an empty object