|
|||||||
![]() |
|
|
Thread Tools |
|
#1
|
||||
|
||||
|
This is not technically a bug, but an inconsistency.
When calling Ext.iterate with an array the callback parameters are: (Object item, Number index, Array allItems) (String key, Object value) (Object value, String key, Object obj) |
|
#2
|
||||
|
||||
|
I think the horse has already bolted, we can't really change the parameter order, though we could pass the object itself as the 3rd parameter.
|
|
#3
|
||||
|
||||
|
Wish we would have seen this one before 3.0.0 final drop. Going to close this as we cannot change the API at this point.
__________________
Aaron Conran Ext JS - Core Development Team |
|
#4
|
||||
|
||||
|
Wouldn't OPEN-DEF state be more appropriate?
|
|
#5
|
||||
|
||||
|
DEFered until 4.0? We can't break the API in the 3.x branch.
__________________
Aaron Conran Ext JS - Core Development Team |
|
#6
|
||||
|
||||
|
How widely used is this new method among customers?
__________________
ExtJs forum volunteer. No official connection to the Ext Company. I do not speak for them. ExtJs consultancy offered. £ 50/hour. Evenings+weekends. the_bagbournes@btinternet.com Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu Read the docs too: http://extjs.com/deploy/dev/docs/ See Saki's samples: http://examples.extjs.eu/ Build your own Ext: http://extjs.com/products/extjs/build/ Scope: http://extjs.com/forum/showthread.ph...642#post257642 |
|
#7
|
||||
|
||||
|
So.... I'm marking this as OPEN but only to add the 3rd argument, not to switch the order.
Animal, you make a good point but if we doc it and its in the docs then people will use it (even if they don't need to) ![]()
__________________
Aaron Conran Ext JS - Core Development Team |
|
#8
|
||||
|
||||
|
You can add API methods:
Ext.iterateArray() Ext.iterateObject() Mark in the docs that the old iterate() is deprecated. |
|
#9
|
|||
|
|||
|
This would not help, the point is that we're striving to only remove deprecated items or make a breaking change in the API in the next major release (4.x).
__________________
MJ API Search || Ext 3: docs-demo-upgrade guide || User Extension Repository Frequently Asked Questions: FAQs Tutorial: Grid (php/mysql/json) , Application Design and Structure || Extensions: MetaGrid, MessageWindow |
![]() |
| Thread Tools | |
|
|