Skip to content

Commit d662d33

Browse files
committed
Add real ownerInfo for Cursor methods
1 parent f45a569 commit d662d33

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

assets/utils.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,12 @@ function hijackCursor(Cursor) {
9292
&& typeof callback === 'function') {
9393
args[0] = function (doc, index) {
9494
var args = Array.prototype.slice.call(arguments);
95+
var ownerInfo = {type: type, collection: self.collection.name};
9596
var zoneInfo = {type: type, collection: self.collection.name};
9697
zoneInfo.document = doc;
9798
zoneInfo.index = index;
9899
zone.setInfo(type, zoneInfo);
99-
callback = zone.bind(callback, false, {}. pickAllArgs);
100+
callback = zone.bind(callback, false, ownerInfo. pickAllArgs);
100101
return callback.apply(this, args);
101102
};
102103
}

0 commit comments

Comments
 (0)