소스 검색

Merge branch 'master' of github.com:ivaynberg/select2

Igor Vaynberg 13 년 전
부모
커밋
504bca4b43
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      select2.js

+ 4 - 1
select2.js

@@ -1000,7 +1000,10 @@
 
         // abstract
         getPlaceholder: function () {
-            return this.opts.element.attr("placeholder") || this.opts.element.data("placeholder") || this.opts.placeholder;
+            return this.opts.element.attr("placeholder") ||
+                this.opts.element.attr("data-placeholder") || // jquery 1.4 compat
+                this.opts.element.data("placeholder") ||
+                this.opts.placeholder;
         },
 
         /**