ソースを参照

Merge pull request #313 from tregagnon/master

Fix typing mistake
Igor Vaynberg 12 年 前
コミット
1e9cfc762f
1 ファイル変更1 行追加1 行削除
  1. 1 1
      select2.js

+ 1 - 1
select2.js

@@ -396,7 +396,7 @@
      */
      */
     function checkFormatter(formatter, formatterName) {
     function checkFormatter(formatter, formatterName) {
         if ($.isFunction(formatter)) return true;
         if ($.isFunction(formatter)) return true;
-        if (!formatter) return fasle;
+        if (!formatter) return false;
         throw new Error("formatterName must be a function or a falsy value");
         throw new Error("formatterName must be a function or a falsy value");
     }
     }