var EHDI = EHDI || Object.create(null); EHDI.displays = EHDI.displays || Object.create(null); EHDI.displays.ButtonContainer = function(label, labelStyle, pointerUp, pointerDown, mouseOver, disabledTexture, scaleOnPointerDown) { EHDI.displays.Button.call(this, pointerUp, pointerDown, mouseOver, disabledTexture, scaleOnPointerDown); this.label = new EHDI.aka.PixiText(label, labelStyle); this.label.anchor.set(0.5, 0.5); this.addChild(this.label); }; EHDI.displays.ButtonContainer.prototype = Object.create(EHDI.displays.Button.prototype);