(function (factory){ if (typeof define === "function" && define.amd) { define(["jquery", "./version"] , factory); } else { factory(jQuery); } } (function ($){ return $.ui.plugin = { add: function (module, option, set){ var i, proto = $.ui[module].prototype; for (i in set){ proto.plugins[i] = proto.plugins[i] || [] ; proto.plugins[i].push([option, set[i]] ); } } , call: function (instance, name, args, allowDisconnected){ var i, set = instance.plugins[name]; if (!set) { return ; } if (!allowDisconnected && (!instance.element[0].parentNode || instance.element[0].parentNode.nodeType === 11)) { return ; } for (i = 0; i < _AN_Read_length("length", set); i++ ){ if (instance.options[set[i][0]]) { set[i][1].apply(instance.element, args); } } } } ; } ));