mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-08 17:22:31 +03:00
Make $(document).tooltip({...}) without a selector throw an error
Closes #15484
This commit is contained in:
@@ -1107,4 +1107,10 @@ $(function () {
|
||||
$element.bootstrapTooltip('show')
|
||||
})
|
||||
|
||||
test('should throw an error when initializing tooltip on the document object without specifying a delegation selector', function () {
|
||||
throws(function () {
|
||||
$(document).bootstrapTooltip({ title: 'What am I on?' })
|
||||
}, new Error('`selector` option must be specified when initializing tooltip on the window.document object!'))
|
||||
})
|
||||
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user