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

Remove poller #34

Closed
wants to merge 2 commits into from
Closed

Remove poller #34

wants to merge 2 commits into from

Conversation

philjones88
Copy link
Contributor

Added functionality to remove a specific poller instance rather than having to rely upon reset() for issue #33

/**
* Stop and removes a specific poller service
*/
remove: function (poller) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why passing in poller here instead of adding a delete function to Poller.prototype? That way you can do something like this in your controller:

myPoller.delete();

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

couldn't see a way to remove it from the pollers array then, open to suggestions :)

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we go: 3831aad. :-)

@emmaguo emmaguo closed this Jul 19, 2015
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