瀏覽代碼

Fix example code for the old matcher

Kevin Brown 10 年之前
父節點
當前提交
dc2f6d451a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/examples.html

+ 1 - 1
docs/examples.html

@@ -703,7 +703,7 @@ function matchStart (term, text) {
   return false;
 }
 
-$.select2.amd.require(['select2/compat/matcher'], function (oldMatcher) {
+$.fn.select2.amd.require(['select2/compat/matcher'], function (oldMatcher) {
   $(".js-example-matcher-start").select2({
     matcher: oldMatcher(matchStart)
   })