Commit ae4842db84e12ba1a1728d4b5bb014469b89e4cd

Michael Schmidt 2019-02-27T14:54:06

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.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/examples/prism-json.html b/examples/prism-json.html
index 6bfc574..027f931 100644
--- a/examples/prism-json.html
+++ b/examples/prism-json.html
@@ -14,6 +14,3 @@
     "error": null,
     "status": "Ok"
 }</code></pre>
-
-<h2>JSONP</h2>
-<pre><code>callback({ "data": null });</code></pre>
diff --git a/examples/prism-jsonp.html b/examples/prism-jsonp.html
new file mode 100644
index 0000000..5de6ffa
--- /dev/null
+++ b/examples/prism-jsonp.html
@@ -0,0 +1,2 @@
+<h2>Callbacks</h2>
+<pre><code>callback({ "data": null });</code></pre>