Browse Source

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

Igor Vaynberg 13 years ago
parent
commit
504bca4b43
1 changed files with 4 additions and 1 deletions
  1. 4 1
      select2.js

+ 4 - 1
select2.js

@@ -1000,7 +1000,10 @@
 
 
         // abstract
         // abstract
         getPlaceholder: function () {
         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;
         },
         },
 
 
         /**
         /**