2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-11 18:02:28 +03:00

Merge branch 'master' into v4

This commit is contained in:
Chris Rebert
2015-01-21 13:00:12 -08:00
16 changed files with 1389 additions and 1128 deletions
+3 -3
View File
@@ -188,7 +188,7 @@ $(function () {
equal($('.popover').length, 0, 'popover was removed')
})
test('should detach popover content rather than removing it so that event handlers are left intact', function () {
test('should detach popover content rather than removing it so that event handlers are left intact', function (assert) {
var $content = $('<div class="content-with-handler"><a class="btn btn-warning">Button with event handler</a></div>').appendTo('#qunit-fixture')
var handlerCalled = false
@@ -207,7 +207,7 @@ $(function () {
}
})
stop()
var done = assert.async()
$div
.one('shown.bs.popover', function () {
$div
@@ -217,7 +217,7 @@ $(function () {
$('.content-with-handler .btn').click()
$div.bootstrapPopover('destroy')
ok(handlerCalled, 'content\'s event handler still present')
start()
done()
})
.bootstrapPopover('show')
})