From 7392b318bd35e1f9f1530d967357f6e09d536c70 Mon Sep 17 00:00:00 2001 From: bgrins Date: Thu, 27 Jun 2013 09:27:00 -0500 Subject: [PATCH] fire change, not change.spectrum so that input change event fires at the same times as callbacks.change --- spectrum.js | 2 +- test/tests.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/spectrum.js b/spectrum.js index 137089f1..01fe810c 100644 --- a/spectrum.js +++ b/spectrum.js @@ -698,7 +698,7 @@ addColorToSelectionPalette(color); if (fireCallback && hasChanged) { callbacks.change(color); - boundElement.trigger('change.spectrum', [ color ]); + boundElement.trigger('change', [ color ]); } } diff --git a/test/tests.js b/test/tests.js index bc31ac88..2f9a689c 100644 --- a/test/tests.js +++ b/test/tests.js @@ -51,8 +51,7 @@ test( "Events Fire", function() { }); - // change.spectrum - el.on("change.spectrum", function(e, color) { + el.on("change", function(e, color) { ok(false, "Change should not fire from `set` call"); });