/*** = Description ** Simple confirm sheet control. Acts like HAlertSheet but has a cancel ** button as well. ***/ var//RSence.Controls HConfirmSheet = HAlertSheet.extend({ /** = Description * Creates a cancel button. * **/ alertButtons: function(){ this.cancelButton = HClickButton.extend({ click: function(){ this.setValue( -1 ); } }).nu( [ null, null, 60, 23, 76, 8 ], this, { label: 'Cancel', valueObj: this.valueObj, events: { click: true } } ); this.base(); }, /** = Description * Binds the same value to cancelButton. * **/ setValueObj: function( valueObj ){ this.base( valueObj ); if ( this['cancelButton'] ) { valueObj.bind( this.cancelButton ); } } });