pein0119 / phpquery

Automatically exported from code.google.com/p/phpquery
0 stars 0 forks source link

each() has wrong arguments order #105

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Right now (WRONG):

pq('div')->each(function($node) {
  // no $i
});

Should be (jQuery-compatible):

pq('div')->each(function($i, $node) {
});

Original issue reported on code.google.com by tobiasz....@gmail.com on 3 Apr 2009 at 10:16