-
9 Aug 2012 10:25 AM #1
Ext.Array.sum improvement
Ext.Array.sum improvement
The Ext.Array.sum polyfill method should be very similar to the Array.reduce method.
I suggested adding the callback and initialValue params and delegating to Array.reduce when possible.
Another option is to leave Ext.Array.sum as is and add the new Ext.Array.reduce method.
-
9 Aug 2012 11:40 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,107
- Vote Rating
- 453
Pushed as a story. Thank you!
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
9 Aug 2012 4:15 PM #3
I was searching what Google did... and if they implemented Array.reduce...
I found this funny inline comment:
"We're google; we can't have "map" without "reduce" can we?"
Link
You found a bug! We've classified it as
EXTJSIV-6972
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.


Reply With Quote