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

Cannot read property 'hasOwnProperty' of undefined #18

Open
mvtcode opened this issue Oct 28, 2016 · 2 comments · May be fixed by #26
Open

Cannot read property 'hasOwnProperty' of undefined #18

mvtcode opened this issue Oct 28, 2016 · 2 comments · May be fixed by #26

Comments

@mvtcode
Copy link

mvtcode commented Oct 28, 2016

my app logged to console:

Option "change" has been renamed to "onChange" (jsoneditor.min.js:30)

and error:

Cannot read property 'hasOwnProperty' of undefined

image error console log: http://pasteboard.co/kfckayL4W.png

How to fix it?
Thanks!

@leenr
Copy link

leenr commented Jan 25, 2017

Try to set "options" attribute to empty object or something else.

@ejmolinelli
Copy link

I just changed line 104 to
if ($scope.options && $scope.options.hasOwnProperty('expanded'))

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 a pull request may close this issue.

3 participants