X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6746dc89c47ed01b165cc1152533605f97eb8e8d..HEAD:/examples/core/spotlight-example.js diff --git a/examples/core/spotlight-example.js b/examples/core/spotlight-example.js index 9ea9e0e5..36621244 100644 --- a/examples/core/spotlight-example.js +++ b/examples/core/spotlight-example.js @@ -36,8 +36,8 @@ Ext.onReady(function() { * Custom method which toggles a Ext.Button for the current panel on/off depending on the only argument */ toggle: function(on) { - var btns = this.dockedItems.items[1], - btn = btns.items.items[1]; + var btns = this.dockedItems.last(), + btn = btns.items.first(); if (btn) { btn.setDisabled(!on);