Skip to content

Commit 7bc9387

Browse files
committed
Merge pull request select2#3637 from wobbie/master
fix: modify announcement 4.0 doc Tags example
2 parents 700f790 + 2932c54 commit 7bc9387

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/announcements-4.0.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -685,15 +685,15 @@ <h3 id="changed-data">
685685
</p>
686686

687687
<pre class="prettyprint linenums">
688-
&lt;select data-select2-tags="[{id: '1', text: 'One', id: '2', text: 'Two'}]"&gt;&lt;/select&gt;
688+
&lt;select data-select2-tags='[{"id": "1", "text": "One"}, {"id": "2", "text": "Two"}]'&gt;&lt;/select&gt;
689689
</pre>
690690

691691
<p>
692692
…then you should now declare it as…
693693
</p>
694694

695695
<pre class="prettyprint linenums">
696-
&lt;select data-data="[{id: '1', text: 'One', id: '2', text: 'Two'}]" data-tags="true"&gt;&lt;/select&gt;
696+
&lt;select data-data='[{"id": "1", "text": "One"}, {"id": "2", "text": "Two"}]' data-tags="true"&gt;&lt;/select&gt;
697697
</pre>
698698

699699
<h2 id="removed-methods">Deprecated and removed methods</h2>

0 commit comments

Comments
 (0)