evoShop.extend( [target ,] , options )

arguments:

  • target (optional): object that will be extended. If nothing is provided, evoShop will be extended
  • options: object of name/value pairs that will extend the targer
  • Extend evoShop:

    evoShop.extend({
      log: function( message ){
        try{ console.log( "evoShop(js) message: " + message ); }catch(e){};
      }
    });
    
    evoShop.log( "Hello" ); // "evoShop(js) message: Hello"
    

    Extend an object:

    var object1 = {
        first: "Bob" ,
        last: "Jones"
      },
      object2 = {
        middle: "Michael"
      };
    
    evoShop.extend( object1, object2 );
    
    console.log( object1 ); // { first: "Bob" , last: "Jones" , middle: "Michael" }