O Bootstrap.js gera um erro de opção do seletor: a opção do seletor deve ser especificada ao inicializar a dica de ferramenta no objeto windows.document
Quando tento executar meu aplicativo Web no bootstrap.js, obtenho o seguinte erro:
Exceção não tratada na linha 1306, coluna 7 no localhost: 7904 / Scripts / bootstrap.js 0x800a139e - Erro de tempo de execução do JavaScript:selector
A opção deve ser especificada ao inicializar a dica no objeto window.document!
Estas são as seguintes linhas de código às quais se refere:
Tooltip.prototype.init = function (type, element, options) {
this.enabled = true
this.type = type
this.$element = $(element)
this.options = this.getOptions(options)
this.$viewport = this.options.viewport && $($.isFunction(this.options.viewport) ? this.options.viewport.call(this, this.$element) : (this.options.viewport.selector || this.options.viewport))
this.inState = { click: false, hover: false, focus: false }
if (this.$element[0] instanceof document.constructor && !this.options.selector) {
//LINE 1306 IS RIGHT HERE
throw new Error('`selector` option must be specified when initializing ' + this.type + ' on the window.document object!')
}
var triggers = this.options.trigger.split(' ')
for (var i = triggers.length; i--;) {
var trigger = triggers[i]
if (trigger == 'click') {
this.$element.on('click.' + this.type, this.options.selector, $.proxy(this.toggle, this))
} else if (trigger != 'manual') {
var eventIn = trigger == 'hover' ? 'mouseenter' : 'focusin'
var eventOut = trigger == 'hover' ? 'mouseleave' : 'focusout'
this.$element.on(eventIn + '.' + this.type, this.options.selector, $.proxy(this.enter, this))
this.$element.on(eventOut + '.' + this.type, this.options.selector, $.proxy(this.leave, this))
}
}
this.options.selector ?
(this._options = $.extend({}, this.options, { trigger: 'manual', selector: '' })) :
this.fixTitle()}
Qualquer ajuda sobre este assunto seria apreciada, obrigado.