Triply-Dev / YASGUI.YASQE-deprecated

Deprecated, see https://github.com/TriplyDB/Yasgui for the Yasgui monorepo
MIT License
73 stars 36 forks source link

Fix TypeError caused by incorrect JQuery call #125

Closed AlexeyMz closed 7 years ago

AlexeyMz commented 7 years ago

Fixes an uncaught exception which happens when a user tries to perform edits and syntaxErrorCheck is false.

Full stack trace:

Uncaught TypeError: Cannot read property 'wrapper' of undefined
    at HTMLDocument.getWrapperElement (codemirror.js:5358)
    at fire (jquery.js:3187)
    at Object.add [as done] (jquery.js:3246)
    at jQuery.fn.init.jQuery.fn.ready (jquery.js:3496)
    at new jQuery.fn.init (jquery.js:2927)
    at jQuery (jquery.js:75)
    at checkSyntax (main.js:357)
    at main.js:252
    at codemirror.js:8247
    at fireCallbacksForOps (codemirror.js:3047)
LaurensRietveld commented 7 years ago

Thanks a bunch!