Skip to content

Commit a9888b8

Browse files
committed
move beforeInject call to be before injecting relations
1 parent 109be48 commit a9888b8

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

dist/angular-data.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6688,6 +6688,8 @@ function _inject(definition, resource, attrs, options) {
66886688
throw error;
66896689
} else {
66906690
try {
6691+
definition.beforeInject(definition.name, attrs);
6692+
66916693
DSUtils.forEach(definition.relationList, function (def) {
66926694
var relationName = def.relation;
66936695
var relationDef = DS.definitions[relationName];
@@ -6727,7 +6729,6 @@ function _inject(definition, resource, attrs, options) {
67276729
}
67286730
});
67296731

6730-
definition.beforeInject(definition.name, attrs);
67316732
var id = attrs[idA];
67326733
var item = DS.get(definition.name, id);
67336734
var initialLastModified = item ? resource.modified[id] : 0;

0 commit comments

Comments
 (0)