ng-jsoneditor
ng-jsoneditor copied to clipboard
Cannot read property 'hasOwnProperty' of undefined
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!
Try to set "options" attribute to empty object or something else.
I just changed line 104 to
if ($scope.options && $scope.options.hasOwnProperty('expanded'))