]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Remove `aria-describedby` attribute later 14242/head
authorHeinrich Fenkart <hnrch02@gmail.com>
Fri, 25 Jul 2014 16:33:43 +0000 (18:33 +0200)
committerHeinrich Fenkart <hnrch02@gmail.com>
Mon, 4 Aug 2014 17:21:49 +0000 (19:21 +0200)
Fixes #14241

js/tooltip.js

index 0758b07eefd6f6cb3a8b6092c85479de9b223de7..8a3c2b3469904ac579cae8819f7e4b05316f2928 100644 (file)
     var $tip = this.tip()
     var e    = $.Event('hide.bs.' + this.type)
 
-    this.$element.removeAttr('aria-describedby')
-
     function complete() {
       if (that.hoverState != 'in') $tip.detach()
-      that.$element.trigger('hidden.bs.' + that.type)
+      that.$element
+        .removeAttr('aria-describedby')
+        .trigger('hidden.bs.' + that.type)
     }
 
     this.$element.trigger(e)