Ver Mensaje Individual
  #1 (permalink)  
Antiguo 09/04/2013, 10:24
Avatar de McBlink
McBlink
 
Fecha de Ingreso: noviembre-2006
Ubicación: $ARG->LaPampa()
Mensajes: 1.694
Antigüedad: 17 años, 5 meses
Puntos: 23
Pregunta Agregar métodos a objeto literal

Buenas tardes,
tengo una pequeña duda. Partiendo del siguiente objeto literal javascript:

Código Javascript:
Ver original
  1. Layout = {
  2.     key1: false,
  3.     key2: true,
  4.    
  5.     init: function() {
  6.     },
  7.    
  8.     other: function() {
  9.     }
  10. }

Como puedo agregarle mas métodos o atributos, o inclusive sobre-escribir comportamiento?

Gracias,
Saludos.