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

Don’t bind when context is undefined (instead of throwing a js error) #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ptshih
Copy link
Contributor

@ptshih ptshih commented Aug 13, 2014

Also removed wrapContext as it is not being used

@@ -1217,6 +1199,10 @@
view: $bindEl.attr('bind-attr-context')
});

if (!context) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe do a Woodhouse.log so debugging is easier for missing contexts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure, will add

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe also do the context check and return before all the var definitions (except $bindAttr)

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