dist/jquery.webui-popover.js
function() {
                if (this.$element[0] instanceof document.constructor && !this.options.selector) {
                    throw new Error('`selector` option must be specified when initializing ' + this.type + ' on the window.document object!');
                }

                if (this.getTrigger() !== 'manual') {
                    //init the event handlers
                    if (isMobile) {
                        this.$element.off('touchend', this.options.selector).on('touchend', this.options.selector, $.proxy(this.toggle, this));
                    } else if (this.getTrigger() === 'click') {
                        this.$element.off('click', this.options.selector).on('click', this.options.selector, $.proxy(this.toggle, this));
                    } else if (this.getTrigger() === 'hover') {
                        this.$element
                            .off('mouseenter mouseleave click', this.options.selector)
                            .on('mouseenter', this.options.selector, $.proxy(this.mouseenterHandler, this))
                            .on('mouseleave', this.options.selector, $.proxy(this.mouseleaveHandler, this));
                    }
                }
                this._poped = false;
                this._inited = true;
                this._opened = false;
                this._idSeed = _globalIdSeed;
                this.id = pluginName + this._idSeed;
                // normalize container
                this.options.container = $(this.options.container || document.body).first();

                if (this.options.backdrop) {
                    backdrop.appendTo(this.options.container).hide();
                }
                _globalIdSeed++;
                if (this.getTrigger() === 'sticky') {
                    this.show();
                }

                if (this.options.selector) {
                    this._options = $.extend({}, this.options, {
                        selector: ''
                    });
                }

            }
function() {
                if (this.$element[0] instanceof document.constructor && !this.options.selector) {
                    throw new Error('`selector` option must be specified when initializing ' + this.type + ' on the window.document object!');
                }

                if (this.getTrigger() !== 'manual') {
                    //init the event handlers
                    if (isMobile) {
                        this.$element.off('touchend', this.options.selector).on('touchend', this.options.selector, $.proxy(this.toggle, this));
                    } else if (this.getTrigger() === 'click') {
                        this.$element.off('click', this.options.selector).on('click', this.options.selector, $.proxy(this.toggle, this));
                    } else if (this.getTrigger() === 'hover') {
                        this.$element
                            .off('mouseenter mouseleave click', this.options.selector)
                            .on('mouseenter', this.options.selector, $.proxy(this.mouseenterHandler, this))
                            .on('mouseleave', this.options.selector, $.proxy(this.mouseleaveHandler, this));
                    }
                }
                this._poped = false;
                this._inited = true;
                this._opened = false;
                this._idSeed = _globalIdSeed;
                this.id = pluginName + this._idSeed;
                // normalize container
                this.options.container = $(this.options.container || document.body).first();

                if (this.options.backdrop) {
                    backdrop.appendTo(this.options.container).hide();
                }
                _globalIdSeed++;
                if (this.getTrigger() === 'sticky') {
                    this.show();
                }

                if (this.options.selector) {
                    this._options = $.extend({}, this.options, {
                        selector: ''
                    });
                }

            }
function ( ) { if ( this . $element [ 0 ] instanceof document . constructor && ! this . options . selector ) { throw new Error ( '`selector` option must be specified when initializing ' + this . type + ' on the window.document object!' ) ; } if ( this . getTrigger ( ) !== 'manual' ) { //init the event handlers if ( isMobile ) { this . $element . off ( 'touchend' , this . options . selector ) . on ( 'touchend' , this . options . selector , $ . proxy ( this . toggle , this ) ) ; } else if ( this . getTrigger ( ) === 'click' ) { this . $element . off ( 'click' , this . options . selector ) . on ( 'click' , this . options . selector , $ . proxy ( this . toggle , this ) ) ; } else if ( this . getTrigger ( ) === 'hover' ) { this . $element . off ( 'mouseenter mouseleave click' , this . options . selector ) . on ( 'mouseenter' , this . options . selector , $ . proxy ( this . mouseenterHandler , this ) ) . on ( 'mouseleave' , this . options . selector , $ . proxy ( this . mouseleaveHandler , this ) ) ; } } this . _poped = false ; this . _inited = true ; this . _opened = false ; this . _idSeed = _globalIdSeed ; this . id = pluginName + this . _idSeed ; // normalize container this . options . container = $ ( this . options . container || document . body ) . first ( ) ; if ( this . options . backdrop ) { backdrop . appendTo ( this . options . container ) . hide ( ) ; } _globalIdSeed ++ ; if ( this . getTrigger ( ) === 'sticky' ) { this . show ( ) ; } if ( this . options . selector ) { this . _options = $ . extend ( { } , this . options , { selector : '' } ) ; } }
init webui popover
init webui popover