Sha256: e80ebd992fe0333efa5d3bd66b7754cee9a2beebb4da901f384570a9079e13e5
Contents?: true
Size: 1.41 KB
Versions: 1
Compression:
Stored size: 1.41 KB
Contents
/* RSence * Copyright 2010 Riassence Inc. * http://riassence.com/ * * You should have received a copy of the GNU General Public License along * with this software package. If not, contact licensing@riassence.com */ /*** = Description ** Menu item for the HMiniMenu component. ***/ var//RSence.Menus HMiniMenuItem = HRadioButton.extend({ componentName: 'minimenuitem', defaultEvents: { click: true, mouseUp: true //, // mouseDown: true }, _activateParentParent: function(){ var _parentParent = this.parent.options.logicParent; EVENT.changeActiveControl(_parentParent); }, // gainedActiveStatus: function( _prevActive ){ // console.log('menuitem gained active status',_prevActive === this.parent.options.logicParent); // this.base( _prevActive ); // }, lostActiveStatus: function( _newActive ){ this.parent.options.logicParent.menuHide(); this.base( _newActive ); }, _parentLastActivation: 0, click: function(){ var _now = new Date().getTime(); if( _now - this._parentLastActivation > 200 ){ // console.log('click:',this.label); this.base(); this._parentLastActivation = _now; this._activateParentParent(); } return true; }, // mouseDown: function(){ // this.base(); // this.click(); // return true; // }, mouseUp: function(){ this.base(); this.click(); return true; } });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rsence-2.2.5 | js/menus/minimenuitem/minimenuitem.js |