From ccf55857930e12c9a89c22d872974b8143eae81d Mon Sep 17 00:00:00 2001 From: Chakib Benziane Date: Wed, 28 Mar 2012 19:07:47 +0200 Subject: [PATCH] hover option --- bootstrap-magic-button.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bootstrap-magic-button.js b/bootstrap-magic-button.js index 560443d..320be6d 100644 --- a/bootstrap-magic-button.js +++ b/bootstrap-magic-button.js @@ -58,8 +58,10 @@ else this.$toggleImgUrl = this.$imgUrl - this.$isToggled = false + + if (this.options.hover) + this.addHover() } MagicBtn.prototype = {