We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f45a569 commit d662d33Copy full SHA for d662d33
assets/utils.js
@@ -92,11 +92,12 @@ function hijackCursor(Cursor) {
92
&& typeof callback === 'function') {
93
args[0] = function (doc, index) {
94
var args = Array.prototype.slice.call(arguments);
95
+ var ownerInfo = {type: type, collection: self.collection.name};
96
var zoneInfo = {type: type, collection: self.collection.name};
97
zoneInfo.document = doc;
98
zoneInfo.index = index;
99
zone.setInfo(type, zoneInfo);
- callback = zone.bind(callback, false, {}. pickAllArgs);
100
+ callback = zone.bind(callback, false, ownerInfo. pickAllArgs);
101
return callback.apply(this, args);
102
};
103
}
0 commit comments