Matt, I think your approach is usefull only if one wants to create a new jQuery method... because checking everytime if forEach method exists is not easily maintainable...
Maybe it could be a $.forEach, applying the Mozilla implementation if the browser doesn't support the method... what do you guys think of it? Diogo On May 19, 11:29 am, Matt Kruse <[email protected]> wrote: > On May 19, 9:19 am, diogobaeder <[email protected]> wrote: > > > Brainstorming: what about a $.each2 method, to avoid messing with the > > original signature (name + parameters), but using > > Array.prototype.forEach? > > Why not just call Array.prototype.forEach in your code if it exists? > > Matt Kruse --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---
