lib/kissy/5.0.0-alpha.3/build/base-debug.js
function (plugin) {
                var self = this;
                if (typeof plugin === 'function') {
                    var Plugin = plugin;
                    plugin = new Plugin();
                }    // initialize plugin
                     //noinspection JSUnresolvedVariable
                // initialize plugin
                //noinspection JSUnresolvedVariable
                if (plugin.pluginInitializer) {
                    // noinspection JSUnresolvedFunction
                    plugin.pluginInitializer(self);
                }
                self.get('plugins').push(plugin);
                return self;
            }
function (plugin) {
                var self = this;
                if (typeof plugin === 'function') {
                    var Plugin = plugin;
                    plugin = new Plugin();
                }    // initialize plugin
                     //noinspection JSUnresolvedVariable
                // initialize plugin
                //noinspection JSUnresolvedVariable
                if (plugin.pluginInitializer) {
                    // noinspection JSUnresolvedFunction
                    plugin.pluginInitializer(self);
                }
                self.get('plugins').push(plugin);
                return self;
            }
function ( plugin ) { var self = this ; if ( typeof plugin === 'function' ) { var Plugin = plugin ; plugin = new Plugin ( ) ; } // initialize plugin //noinspection JSUnresolvedVariable // initialize plugin //noinspection JSUnresolvedVariable if ( plugin . pluginInitializer ) { // noinspection JSUnresolvedFunction plugin . pluginInitializer ( self ) ; } self . get ( 'plugins' ) . push ( plugin ) ; return self ; }
plugin a new plugins to current instance
@param {Function|Object} plugin
@chainable
plugin a new plugins to current instance