Skip to content

Commit 398a535

Browse files
author
Romy Kusuma
committed
Empty the map when process function called
1 parent e110faa commit 398a535

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/angular-spring-data-rest-provider.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,14 @@ angular.module("spring-data-rest").provider("SpringDataRestAdapter", function ()
356356
}
357357
};
358358

359+
// empty the map and
359360
// return an object with the processData function
360-
return {process: processData};
361+
return {
362+
process: function(promiseOrData, fetchLinkNames, recursive) {
363+
map = {};
364+
return processData(promiseOrData, fetchLinkNames, recursive);
365+
}
366+
};
361367
}]
362368
};
363369

0 commit comments

Comments
 (0)