Skip to content

Commit

Permalink
Fix forEach callback arguments, refs #39
Browse files Browse the repository at this point in the history
  • Loading branch information
kriszyp committed Jan 20, 2015
1 parent e9d6922 commit ce520bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion QueryResults.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ define(['dojo/_base/lang', 'dojo/when'], function (lang, when) {
function forEach(callback, instance) {
return when(this, function(data) {
for (var i = 0, l = data.length; i < l; i++){
callback.call(instance, data[i], data);
callback.call(instance, data[i], i, data);
}
});
}
Expand Down

0 comments on commit ce520bf

Please sign in to comment.