Explorar o código

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

Igor Vaynberg %!s(int64=13) %!d(string=hai) anos
pai
achega
5ae45f4124
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  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;
         },
 
         /**