From 6eb3e7a78e8fcada569568b74f8560642bd0112b Mon Sep 17 00:00:00 2001 From: vitalets <noginsk@rambler.ru> Date: Tue, 29 Jan 2013 19:10:45 +0400 Subject: [PATCH] comments --- src/inputs/select2/select2.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/inputs/select2/select2.js b/src/inputs/select2/select2.js index fb1a103..439a541 100644 --- a/src/inputs/select2/select2.js +++ b/src/inputs/select2/select2.js @@ -42,7 +42,7 @@ $(function(){ //detect whether it is multi-valued this.isMultiple = options.select2.tags || options.select2.multiple; - //if not `tags` mode, we need define init set data from source + //if not `tags` mode, we need define initSelection to set data from source if(!options.select2.tags) { if(options.source) { mixin.data = options.source; @@ -79,9 +79,8 @@ $(function(){ this.$input.on('change', function() { $(this).closest('form').parent().triggerHandler('resize'); }); - } - - }, + } + }, value2html: function(value, element) { var text = '', data;