Fix silly variable scope issue

This commit is contained in:
Ole André Vadla Ravnås
2013-12-22 02:13:19 +01:00
parent e9e961afbc
commit d0fbcc2e23
+2 -3
View File
@@ -116,8 +116,7 @@ function scheduleNext() {
}
};
function onStanza(targets) {
for (var i = 0; i !== targets.length; i++) {
var target = targets[i];
targets.forEach(function (target) {
pending.push(function () {
Interceptor.attach(ptr(target.address), {
onEnter: function onEnter(args) {
@@ -125,7 +124,7 @@ function onStanza(targets) {
}
});
});
}
});
scheduleNext();