1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-29 23:09:05 +02:00

remove old references to jquery and some fixes

This commit is contained in:
Johann-S
2018-03-11 16:18:56 +01:00
committed by XhmikosR
parent 0263d1742c
commit 7eddee286e
14 changed files with 44 additions and 56 deletions

View File

@@ -91,7 +91,7 @@ $(function () {
var done = assert.async()
var $el = $('<div/>')
var $alert = $el.bootstrapAlert()
var alertInstance = $alert.data('bs.alert')
var alertInstance = Data.getData($alert[0], 'bs.alert')
$alert.one('closed.bs.alert', function () {
assert.ok('alert closed')
@@ -107,11 +107,11 @@ $(function () {
var $el = $('<div/>')
var $alert = $el.bootstrapAlert()
assert.ok(typeof $alert.data('bs.alert') !== 'undefined')
assert.ok(typeof Data.getData($alert[0], 'bs.alert') !== 'undefined')
$alert.data('bs.alert').dispose()
Data.getData($alert[0], 'bs.alert').dispose()
assert.ok(typeof $alert.data('bs.button') === 'undefined')
assert.ok(Data.getData($alert[0], 'bs.alert') === null)
})
QUnit.test('should return alert version', function (assert) {