pc-magas / phpquery

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

each() has wrong arguments order #105

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 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