Skip to content

Commit 7fda203

Browse files
committed
remove outdated jQuery.parseJSON
1 parent be79e0a commit 7fda203

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/pat/modal/modal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ export default Base.extend({
529529
import("./modal.scss");
530530

531531
var self = this;
532-
self.options.loadLinksWithinModal = $.parseJSON(
532+
self.options.loadLinksWithinModal = JSON.parse(
533533
self.options.loadLinksWithinModal
534534
);
535535

src/pat/tinymce/tinymce.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ describe("TinyMCE", function () {
5959
for (const val of vars) {
6060
const pair = val.split("=");
6161
if (decodeURIComponent(pair[0]) === "query") {
62-
query = $.parseJSON(decodeURIComponent(pair[1]));
62+
query = JSON.parse(decodeURIComponent(pair[1]));
6363
}
6464
}
6565
const results = [];

src/pat/upload/upload.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export default Base.extend({
177177
// upload pattern, e.g. the TinyMCE pattern's link plugin.
178178
var data;
179179
try {
180-
data = $.parseJSON(response);
180+
data = JSON.parse(response);
181181
} catch {
182182
data = response;
183183
}

0 commit comments

Comments
 (0)