소스 검색

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

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

+ 1 - 3
select2.js

@@ -758,9 +758,7 @@
         },
 
         getPlaceholder: function () {
-            var placeholder = this.opts.element.data("placeholder");
-            if (placeholder !== undefined) return placeholder;
-            return this.opts.placeholder;
+            return this.opts.element.attr("placeholder") || this.opts.element.data("placeholder") || this.opts.placeholder;
         },
 
         /**