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;