_activate: function(item)
 {
     if (this.ignoreNextSetActive) {
         this.ignoreNextSetActive = false;
         return;
     }
     if (!this.list.el.isVisible(true)) return;
     if (item.el.down('a')) {
         var href = item.el.down('a').dom.href;
         if (!historyState.currentState.eyeCandyListActive) {
             historyState.currentState.eyeCandyListActive = href;
             historyState.updateState();
         } else {
             historyState.currentState.eyeCandyListActive = href;
             historyState.pushState(document.title, href);
         }
     }
 }
Пример #2
0
 Ext2.get('testBtn2').on('click', function() {
     historyState.currentState.result = 'index';
     Ext2.get('result').update(historyState.currentState.result);
     historyState.pushState('asdf', '/kwf/test/kwf_js_history-state_test');
 }, this);