(function(){ $.fn.my_plugin = function my_plugin(options) { // $ Source $(options); // $ Alert - or is it? $(options.target); // $ Alert if (isElement(options.target)) { $(options.target); } var target = options.target; if (isElement(target)) { $(target); } if (typeof target != "string") { $(target); } if (target.jquery === undefined) { $(target); // $ Alert } else { $(target); } if (target.jquery !== undefined) { $(target); } else { $(target); // $ Alert } if (typeof target.jquery !== "undefined") { $(target); } else { $(target); // $ Alert } if (typeof target.jquery === "undefined") { $(target); // $ Alert } else { $(target); } if (target.jquery) { $(target); } else { $(target); // $ Alert } if (!target.jquery) { $(target); // $ Alert } else { $(target); } if (!!target.jquery) { $(target); } else { $(target); // $ Alert } }; $.fn.my_plugin = function my_plugin(element, options) { // $ Source this.$element = $(element); this.options = $.extend({}, options); if (this.options.parent) this.$parent = $(this.options.parent) // $ Alert }; $.fn.my_plugin = function my_plugin(options) { // $ Source $(options.foo.bar.baz); // $ Alert $(options.html); }; $.fn.my_plugin = function my_plugin(options) { // $ Source $(x).appendTo(options.foo.bar.baz); // $ Alert }; $.fn.my_plugin = function my_plugin(options) { $("#" + options.target); }; $.fn.my_plugin = function my_plugin(options) { // $ Source function f(o) { this.o = $.extend({}, o); var t = this.o.target; console.log(t); $(t); // $ Alert } f(options); }; $.fn.my_plugin = function my_plugin(options) { var target = options.target; if (safe.has(target)) $(target); }; $.fn.my_plugin = function my_plugin(options) { // $ Source options = $.extend({ menu: '
', target: '.my_plugin' }, options); $(options.menu); $(options.target); // $ Alert }; $.fn.my_plugin.defaults = { menu: '', target: '.my_plugin' }; $.fn.my_plugin = function my_plugin(options) { // $ Source options = $.extend({}, $.fn.my_plugin.defaults, options); $(options.menu); $(options.target); // $ Alert }; var pluginName = "my_plugin"; $.fn[pluginName] = function my_plugin(options) { // $ Source $(options.target); // $ Alert }; $.extend($.fn, { my_plugin: function my_plugin(options) { // $ Source $(options.target); // $ Alert } }); $.fn.affix = function my_plugin(options) { // $ Source $(options.target); // $ Alert }; $.fn.tooltip = function my_plugin(options) { // $ Source $(options.viewport.selector); // $ Alert }; $.fn.my_plugin = function my_plugin(options) { let intentional1 = options.target || `