From b034a558844991702cfc2e1cfa4e0924ee43582b Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Tue, 17 Apr 2012 08:04:00 -0700 Subject: [PATCH] added todo for placeholder validation --- select2.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/select2.js b/select2.js index 467ee8bd..04938b1a 100755 --- a/select2.js +++ b/select2.js @@ -1052,6 +1052,9 @@ prepareOpts: function () { var opts = this.parent.prepareOpts.apply(this, arguments); + + // TODO validate placeholder is a string if specified + if (opts.element.get(0).tagName.toLowerCase() === "select") { // install sthe selection initializer this.opts.initSelection = function (element) {