aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorKAWACHI Takashi <[email protected]>2012-12-23 15:17:41 +0900
committerKAWACHI Takashi <[email protected]>2012-12-23 15:17:41 +0900
commitdefe85bb51e13ef619c8d0dc1303e3b195c4a772 (patch)
treeb5780abbd905192e690a3294b20a38b02640abdb /js
parent7a3a88acc60f7055720b919e281d3c881d05916f (diff)
downloadbootstrap-defe85bb51e13ef619c8d0dc1303e3b195c4a772.tar.xz
bootstrap-defe85bb51e13ef619c8d0dc1303e3b195c4a772.zip
Assign event variables at declarations
Diffstat (limited to 'js')
-rw-r--r--js/bootstrap-tooltip.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/bootstrap-tooltip.js b/js/bootstrap-tooltip.js
index 2a79490b1..8c8673387 100644
--- a/js/bootstrap-tooltip.js
+++ b/js/bootstrap-tooltip.js
@@ -110,10 +110,10 @@
, actualHeight
, placement
, tp
- , e
+ , e = $.Event('show')
if (this.hasContent() && this.enabled) {
- this.$element.trigger(e = $.Event('show'))
+ this.$element.trigger(e)
if (e.isDefaultPrevented()) return
$tip = this.tip()
this.setContent()
@@ -171,9 +171,9 @@
, hide: function () {
var that = this
, $tip = this.tip()
- , e
+ , e = $.Event('hide')
- this.$element.trigger(e = $.Event('hide'))
+ this.$element.trigger(e)
if (e.isDefaultPrevented()) return
$tip.removeClass('in')