Commit defe85bb authored by KAWACHI Takashi's avatar KAWACHI Takashi

Assign event variables at declarations

parent 7a3a88ac
......@@ -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')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment