git.ithinksw.org
/
extjs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrade to ExtJS 4.0.7 - Released 10/19/2011
[extjs.git]
/
examples
/
core
/
spotlight-example.js
diff --git
a/examples/core/spotlight-example.js
b/examples/core/spotlight-example.js
index
9ea9e0e
..
3662124
100644
(file)
--- 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) {
* 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);
if (btn) {
btn.setDisabled(!on);