Skip to content
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

Merged
merged 21 commits into from
Aug 5, 2014
Merged

Cursor methods #36

merged 21 commits into from
Aug 5, 2014

Conversation

thani-sh
Copy link
Contributor

@thani-sh thani-sh commented Aug 1, 2014

For #34

Use `events` format for `info`
Ignore observe events created by blaze (by checking return value)
Fix bugs: setInfo called outside the callback
Add checking if the `time` field is a number
Multiple errors where `helperFn` is used instead of `hookFn`
- 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);
Copy link
Member

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?

Copy link
Contributor Author

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).

Copy link
Member

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.

@arunoda arunoda merged commit d662d33 into master Aug 5, 2014
@thani-sh thani-sh deleted the cursor-methods branch August 5, 2014 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants