ng-jsoneditor icon indicating copy to clipboard operation
ng-jsoneditor copied to clipboard

Cannot read property 'hasOwnProperty' of undefined

Open mvtcode opened this issue 9 years ago • 2 comments

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!

mvtcode avatar Oct 28 '16 03:10 mvtcode

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

leenr avatar Jan 25 '17 14:01 leenr

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

ejmolinelli avatar Feb 22 '17 16:02 ejmolinelli