From 539596bcddfa7c146ec90010fd91c2c2170f6355 Mon Sep 17 00:00:00 2001 From: Tarun Gaba Date: Fri, 15 Aug 2014 02:18:38 +0530 Subject: [PATCH] adressed @jdfrederer's concern! --- IPython/html/static/widgets/js/widget_int.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/IPython/html/static/widgets/js/widget_int.js b/IPython/html/static/widgets/js/widget_int.js index ab5962a3a..de27489bc 100644 --- a/IPython/html/static/widgets/js/widget_int.js +++ b/IPython/html/static/widgets/js/widget_int.js @@ -74,10 +74,15 @@ define([ else if(value < min){ value = min; } - this.model.set('value', value, {updated_view: this}); this.$slider.slider('option', 'value', value); this.$readout.text(value); - this.touch(); + + if(this.model.get('value')!=value) { + alert(this.model.get('value')); + this.model.set('value', value, {updated_view: this}); + alert("touched"); + this.touch(); + } // Use the right CSS classes for vertical & horizontal sliders if (orientation=='vertical') {