var EHDI = EHDI || Object.create(null); EHDI.GAME = EHDI.GAME || Object.create(null); EHDI.GAME.components = EHDI.GAME.components || Object.create(null); EHDI.GAME.components.Effect = function(type, cardsToCompare, points, fn) { this.type = type.val; this.cardsToCompare = cardsToCompare; this.points = points; this.fn = type.fn; this.isSpecial = type.special; }