-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cursor methods #36
Cursor methods #36
Conversation
Use `events` format for `info` Ignore observe events created by blaze (by checking return value) Fix bugs: setInfo called outside the callback
- add hijacks for global helpers - clean up hijack.js file - remove unnecessary result checks for Cusrsors (from iron router hooks) - fix bug: results of original function wasn't returned by hijacked function
Events no longer holds any zone events setTimeout, method calls, etc. Events are only used for small events such as Session.set
&& !notFromForEach | ||
&& typeof callback === 'function') { | ||
args[0] = function () { | ||
var args = Array.prototype.slice.call(arguments); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already have args right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First one was args for fetch, forEach, map
(callback, thisArg) and the second one is for the callback (document, index, cursor).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah okay. I didn't see that. sorry.
For #34