Don't define multiple constant property with same value

This commit is contained in:
YUKI Hiroshi 2013-10-24 10:16:53 +09:00
parent 13584c712a
commit 6756ec255a

View File

@ -73,7 +73,6 @@ AutoHideBrowser.prototype = {
kSTATE_EXPANDED : 'expanded', kSTATE_EXPANDED : 'expanded',
kSTATE_SHRUNKEN : 'shrunken', kSTATE_SHRUNKEN : 'shrunken',
kNOT_SHOWN : 0,
kSHOWN_BY_UNKNOWN : 0, kSHOWN_BY_UNKNOWN : 0,
kSHOWN_BY_SHORTCUT : 1 << 0, kSHOWN_BY_SHORTCUT : 1 << 0,
kSHOWN_BY_MOUSEMOVE : 1 << 1, kSHOWN_BY_MOUSEMOVE : 1 << 1,
@ -744,7 +743,7 @@ AutoHideBrowser.prototype = {
{ {
if (aReason) { if (aReason) {
if (aReason == this.kSHOWN_BY_ANY_REASON) if (aReason == this.kSHOWN_BY_ANY_REASON)
this.showHideReason = this.kNOT_SHOWN; this.showHideReason &= ~this.kSHOWN_BY_ANY_REASON;
else if (this.showHideReason & aReason) else if (this.showHideReason & aReason)
this.showHideReason ^= aReason; this.showHideReason ^= aReason;