Commit 3a5b4cc7 authored by Jon Stevens's avatar Jon Stevens

simplify code into a single line

parent af88f54e
...@@ -72,9 +72,7 @@ ...@@ -72,9 +72,7 @@
} }
, destroy: function () { , destroy: function () {
var $e = this.$element this.$element.off().removeData('popover')
$e.off()
$e.removeData('popover')
} }
}) })
......
...@@ -236,9 +236,7 @@ ...@@ -236,9 +236,7 @@
} }
, destroy: function () { , destroy: function () {
var $e = this.$element this.$element.off().removeData('tooltip')
$e.off()
$e.removeData('tooltip')
} }
} }
......
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