"use strict";
(function ($) {
    $.field_groupuser = function (element, options) {
        var defaults = {
        }
        var plugin = this;
        plugin.settings = {}
        var $element = $(element), 
            element = element;    
        
        plugin.init = function () {
            plugin.settings = $.extend({}, defaults, options);
            $element.find('.list-groupuser').select2();
        };
        plugin.example_function = function () {
        };
        plugin.init();
    }
    
    $.fn.field_groupuser = function (options) {
        
        return this.each(function () {
            
            if (undefined == $(this).data('field_groupuser')) {
                var plugin = new $.field_groupuser(this, options);
                $(this).data('field_groupuser', plugin);
            }
        });
    }
})(jQuery);