Просмотр исходного кода

Fix example code for the old matcher

Kevin Brown 10 лет назад
Родитель
Сommit
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)
   })