Skip to content

Commit 5d8f03c

Browse files
committed
clarify syntax. fixes select2#1358
1 parent d08d9ff commit 5d8f03c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2934,7 +2934,7 @@ the specific language governing permissions and limitations under the Apache Lic
29342934
}
29352935

29362936
this.opts.initSelection(this.opts.element, function(data){
2937-
var ids=$(data).map(self.id);
2937+
var ids=$.map(data, self.id);
29382938
self.setVal(ids);
29392939
self.updateSelection(data);
29402940
self.clearSearch();

0 commit comments

Comments
 (0)