瀏覽代碼

Update docs.md (#6162)

Renan Lucas 2 年之前
父節點
當前提交
58951103b8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/pages/15.upgrading/02.migrating-from-35/docs.md

+ 1 - 1
docs/pages/15.upgrading/02.migrating-from-35/docs.md

@@ -165,7 +165,7 @@ $.fn.select2.amd.require([
     $("#select").select2({
         dataAdapter: CustomData
     });
-}
+});
 ```
 
 The new `current` method of the data adapter works in a similar way to the old `initSelection` method, with three notable differences. The first, and most important, is that **it is called whenever the current selections are needed** to ensure that Select2 is always displaying the most accurate and up to date data. No matter what type of element Select2 is attached to, whether it supports a single or multiple selections, the data passed to the callback **must be an array, even if it contains one selection**.