Skip to content

Add off method#60

Merged
peduarte merged 1 commit into
peduarte:masterfrom
jamesfzhang:master
Feb 15, 2016
Merged

Add off method#60
peduarte merged 1 commit into
peduarte:masterfrom
jamesfzhang:master

Conversation

@jamesfzhang

Copy link
Copy Markdown
Contributor

What do you think? @peduarte See #59 for details. Thanks!

@peduarte

Copy link
Copy Markdown
Owner

Hey @jamesfzhang i'm definitely opened to this. I'll do some tests to make sure it's working and then merge.

Thanks!

@jamesfzhang

Copy link
Copy Markdown
Contributor Author

@peduarte Fantastic. I've been using this locally for testing and it works fine. Thanks!

Comment thread js/Wallop.js Outdated
@@ -154,9 +154,11 @@

// Method so it is nicer for the user to use custom events

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Can you replace this comment with:
Method to bind custom event

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sure

@jamesfzhang

Copy link
Copy Markdown
Contributor Author

Just updated the commit with comments.

@peduarte

Copy link
Copy Markdown
Owner

Nice one, thank you

@peduarte

Copy link
Copy Markdown
Owner

@jamesfzhang Hey,
I did some tests, and in this scenario, the off method does not seem to work.
http://codepen.io/peduarte/pen/bEzVpb?editors=1111
Scroll down to the end of the code in the JS Panel and you'll see what it is.

@jamesfzhang

Copy link
Copy Markdown
Contributor Author

@peduarte You need to use a named function (as opposed to an anonymous function) like so:

http://codepen.io/anon/pen/adXJVx?editors=1111

@peduarte

Copy link
Copy Markdown
Owner

Ok, that's good. I'm happy with it!
Can you also update the docs to include the off method there? Then it's good to merge 👍

@jamesfzhang

Copy link
Copy Markdown
Contributor Author

@peduarte Just updated the readme. Thanks!

@peduarte

Copy link
Copy Markdown
Owner

👍

peduarte pushed a commit that referenced this pull request Feb 15, 2016
@peduarte peduarte merged commit 5312a7c into peduarte:master Feb 15, 2016
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.

2 participants