From 5d8f03c90b624e8fac52e3b6f4f35435064720ea Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Mon, 3 Jun 2013 10:02:19 -0700 Subject: [PATCH] clarify syntax. fixes #1358 --- select2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/select2.js b/select2.js index 6b741858..8ead520e 100644 --- a/select2.js +++ b/select2.js @@ -2934,7 +2934,7 @@ the specific language governing permissions and limitations under the Apache Lic } this.opts.initSelection(this.opts.element, function(data){ - var ids=$(data).map(self.id); + var ids=$.map(data, self.id); self.setVal(ids); self.updateSelection(data); self.clearSearch();