"use strict";
(function ($) {
    $.field_woocommerceorderstatus = function (element, options) {
        var defaults = {
            input_name: ""
        }
        var plugin = this;
        plugin.settings = {}
        var $element = $(element), 
            element = element;
        plugin.init = function () {
            plugin.settings = $.extend({}, defaults, options);
           $element.find('select.woocommerceorderstatus').select2();
        };
        plugin.example_function = function () {
        };
        plugin.init();
    }
    
    $.fn.field_woocommerceorderstatus = function (options) {
        
        return this.each(function () {
            
            if (undefined === $(this).data('field_woocommerceorderstatus')) {
                var plugin = new $.field_woocommerceorderstatus(this, options);
                $(this).data('field_woocommerceorderstatus', plugin);
            }
        });
    }
})(jQuery);
