mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-19 16:54:24 +01:00
remove the ns option
This commit is contained in:
parent
393f4a7b42
commit
d76c899142
12
docs/templates/pages/javascript.mustache
vendored
12
docs/templates/pages/javascript.mustache
vendored
@ -754,12 +754,6 @@ $('a[data-toggle="tab"]').on('shown', function (e) {
|
||||
<p>{{_i}}Object structure is: <code>delay: { show: 500, hide: 100 }</code>{{/i}}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{_i}}ns{{/i}}</td>
|
||||
<td>{{_i}}string{{/i}}</td>
|
||||
<td>'.tooltip'</td>
|
||||
<td>{{_i}}jQuery event namespace{{/i}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="alert alert-info">
|
||||
@ -918,12 +912,6 @@ $('a[data-toggle="tab"]').on('shown', function (e) {
|
||||
<p>{{_i}}Object structure is: <code>delay: { show: 500, hide: 100 }</code>{{/i}}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{_i}}ns{{/i}}</td>
|
||||
<td>{{_i}}string{{/i}}</td>
|
||||
<td>'.popover'</td>
|
||||
<td>{{_i}}jQuery event namespace{{/i}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="alert alert-info">
|
||||
|
3
js/bootstrap-popover.js
vendored
3
js/bootstrap-popover.js
vendored
@ -72,7 +72,7 @@
|
||||
}
|
||||
|
||||
, destroy: function () {
|
||||
this.hide().$element.off(this.options.ns).removeData('popover')
|
||||
this.hide().$element.off('.' + this.type).removeData(this.type)
|
||||
}
|
||||
|
||||
})
|
||||
@ -97,7 +97,6 @@
|
||||
placement: 'right'
|
||||
, content: ''
|
||||
, template: '<div class="popover"><div class="arrow"></div><div class="popover-inner"><h3 class="popover-title"></h3><div class="popover-content"><p></p></div></div></div>'
|
||||
, ns: '.popover'
|
||||
})
|
||||
|
||||
}(window.jQuery);
|
7
js/bootstrap-tooltip.js
vendored
7
js/bootstrap-tooltip.js
vendored
@ -47,8 +47,8 @@
|
||||
if (this.options.trigger != 'manual') {
|
||||
eventIn = this.options.trigger == 'hover' ? 'mouseenter' : 'focus'
|
||||
eventOut = this.options.trigger == 'hover' ? 'mouseleave' : 'blur'
|
||||
this.$element.on(eventIn + this.options.ns, this.options.selector, $.proxy(this.enter, this))
|
||||
this.$element.on(eventOut + this.options.ns, this.options.selector, $.proxy(this.leave, this))
|
||||
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 ?
|
||||
@ -238,7 +238,7 @@
|
||||
}
|
||||
|
||||
, destroy: function () {
|
||||
this.hide().$element.off(this.options.ns).removeData('tooltip')
|
||||
this.hide().$element.off('.' + this.type).removeData(this.type)
|
||||
}
|
||||
|
||||
}
|
||||
@ -268,7 +268,6 @@
|
||||
, title: ''
|
||||
, delay: 0
|
||||
, html: true
|
||||
, ns: '.tooltip'
|
||||
}
|
||||
|
||||
}(window.jQuery);
|
||||
|
Loading…
x
Reference in New Issue
Block a user