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

TypeError when checklist-model is a function #65

Closed
dankelleher opened this issue Apr 14, 2015 · 5 comments
Closed

TypeError when checklist-model is a function #65

dankelleher opened this issue Apr 14, 2015 · 5 comments
Labels

Comments

@dankelleher
Copy link

The setter variable is undefined in the watch when the getter is a function. This leads to the following error message in the console:

TypeError: undefined is not a function
at Object.fn (checklist-model.js:69)
at Scope.$digest (angular.js:12251)
at Scope.$apply (angular.js:12516)
at HTMLTableRowElement. (angular.js:18626)
at angular.js:2780
at forEach (angular.js:330)
at HTMLTableRowElement.eventHandler (angular.js:2779)

@dankelleher
Copy link
Author

Hopefully fixed in #66

@beradrian
Copy link
Collaborator

Could you please provide a test case for this in Plunkr or JsFiddle? Thanks

@beradrian
Copy link
Collaborator

Could you also rebase your pull request?

@beradrian beradrian added the bug label Jul 29, 2015
@beradrian
Copy link
Collaborator

A new test case must be added.

@beradrian
Copy link
Collaborator

I added a test case and the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants