Sha256: 3422031ac035883bcf60637a7e9c4db6c76f736dabb8c88248e08336d843b617
Contents?: true
Size: 1.22 KB
Versions: 11
Compression:
Stored size: 1.22 KB
Contents
/*** = 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); // EVENT.changeActiveControl(null); // EVENT.blur( _this ); }, 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 ){ this.base(); this._parentLastActivation = _now; EVENT.changeActiveControl(null); // this._activateParentParent(); } return true; }, mouseDown: function(){ this.base(); this.click(); return true; }, mouseUp: function(){ this.base(); this.click(); return true; } });
Version data entries
11 entries across 11 versions & 1 rubygems