PDA

View Full Version : [2.0b1 SVN-1265][SOLVED] Button error on FormPanel



smpdawg
22 Oct 2007, 6:22 PM
FireFox 2.0.0.8/OSX 10.4.10
Ext 2.0
SVN Revision 1265

I get the following error on a page that has a Window which contains a FormPanel that has three Buttons. This worked prior to rev 1265 with no code changes in my test case.


btn is not defined
[Break on this error] if(btn.render){ // button instance
ext-all-debug.js (line 15723)


I did a quick check in the examples and found that this one demonstrates the bug.

examples/window/hello.html



If you need more detail, let me know.

John

spacyspacy
23 Oct 2007, 7:58 AM
I had the same problem and replaced the line with:


if(btns[i].render){ // button instance

smpdawg
23 Oct 2007, 8:07 AM
Yes, that worked like a champ. Now I can wait patiently for it to be added to SVN.

mystix
23 Oct 2007, 5:55 PM
just checked out rev. 1271, and it's been fixed ;)

smpdawg
23 Oct 2007, 6:06 PM
I just checked it too, works great. My thanks to all.