[Pkg-javascript-commits] [jquery-minicolors] 07/14: #100 - fixed a bug with defaultValue and letterCase options

David Prévot taffit at alioth.debian.org
Thu Aug 8 09:11:18 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository jquery-minicolors.

commit 1ef39f3fc330e83c5c408777ff0058cac2b37b49
Author: Jose Luis <jrodalo at gmail.com>
Date:   Tue Aug 6 11:12:47 2013 +0100

    #100 - fixed a bug with defaultValue and letterCase options
    
    There was a "convertCase" call without letterCase parameter.
---
 jquery.minicolors.js |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/jquery.minicolors.js b/jquery.minicolors.js
index 5dff051..6d16ad8 100644
--- a/jquery.minicolors.js
+++ b/jquery.minicolors.js
@@ -497,7 +497,7 @@ if(jQuery) (function($) {
 		
 		// Determine hex/HSB values
 		hex = convertCase(parseHex(input.val(), true), settings.letterCase);
-		if( !hex ) hex = convertCase(parseHex(settings.defaultValue, true));
+		if( !hex ){hex = convertCase(parseHex(settings.defaultValue, true), settings.letterCase);}
 		hsb = hex2hsb(hex);
 		
 		// Update input value
@@ -856,4 +856,4 @@ if(jQuery) (function($) {
 			}, 1);
 		});
 	
-})(jQuery);
\ No newline at end of file
+})(jQuery);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/jquery-minicolors.git



More information about the Pkg-javascript-commits mailing list