From ffa620bb3a04cbacbd4e23e2b8aad00ecae80da2 Mon Sep 17 00:00:00 2001 From: Survy Vaish Date: Thu, 21 Aug 2014 10:51:29 -0400 Subject: [PATCH] Fixing Issue #32 - Dynamically changing readOnly option. Solution was discussed here: https://github.com/aterrien/jQuery-Knob/issues/32 --- js/jquery.knob.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/jquery.knob.js b/js/jquery.knob.js index 92b76db..0eaece9 100755 --- a/js/jquery.knob.js +++ b/js/jquery.knob.js @@ -85,6 +85,7 @@ } s._carve().init(); s._configure() + ._listen() ._draw(); }; @@ -416,6 +417,8 @@ this.listen(); } else { + this.$c.unbind("mousedown"); + this.$c.unbind("touchstart"); this.$.attr('readonly', 'readonly'); }