- item = this.container.getComponent(item);\r
- if(this.activeItem != item){\r
- if(this.activeItem){\r
- this.activeItem.hide();\r
+ var ai = this.activeItem,\r
+ ct = this.container;\r
+ item = ct.getComponent(item);\r
+\r
+ // Is this a valid, different card?\r
+ if(item && ai != item){\r
+\r
+ // Changing cards, hide the current one\r
+ if(ai){\r
+ ai.hide();\r
+ if (ai.hidden !== true) {\r
+ return false;\r
+ }\r
+ ai.fireEvent('deactivate', ai);\r