From ae4842db84e12ba1a1728d4b5bb014469b89e4cd Mon Sep 17 00:00:00 2001 From: Michael Schmidt Date: Wed, 27 Feb 2019 14:54:06 +0100 Subject: [PATCH] Fixed JSON/JSONP examples (#1765) This corrects my previous mistake where I forgot to adjust the example of JSON after changing the implementation of JSONP. --- examples/prism-json.html | 3 --- examples/prism-jsonp.html | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) create mode 100644 examples/prism-jsonp.html diff --git a/examples/prism-json.html b/examples/prism-json.html index 6bfc5746b1..027f9310f7 100644 --- a/examples/prism-json.html +++ b/examples/prism-json.html @@ -14,6 +14,3 @@

Full example

"error": null, "status": "Ok" } - -

JSONP

-
callback({ "data": null });
diff --git a/examples/prism-jsonp.html b/examples/prism-jsonp.html new file mode 100644 index 0000000000..5de6ffa882 --- /dev/null +++ b/examples/prism-jsonp.html @@ -0,0 +1,2 @@ +

Callbacks

+
callback({ "data": null });