[Pkg-javascript-commits] [jquery-minicolors] 12/46: Fixed bug where value doesn't update when a valid keyword is entered

David Prévot taffit at moszumanska.debian.org
Sun Oct 25 17:18:24 UTC 2015


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

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

commit ce7f6ef4950fc6381fcb54900dad6d61df4a9bf8
Author: Cory LaViska <cory at abeautifulsite.net>
Date:   Thu Sep 17 14:46:12 2015 -0400

    Fixed bug where value doesn't update when a valid keyword is entered
---
 jquery.minicolors.js | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/jquery.minicolors.js b/jquery.minicolors.js
index 147ef3f..a8946a6 100644
--- a/jquery.minicolors.js
+++ b/jquery.minicolors.js
@@ -467,10 +467,7 @@
             if( settings.opacity ) input.attr('data-opacity', opacity);
 
             // Set color string
-            if( keywords && keywords.indexOf(input.val()) >= 0 && input.val() !== '' ) {
-                // Returns CSS-wide keyword ('none' will return 'transparent')
-                value = input.val() === 'none' ? 'transparent' : input.val();
-            } else if (format === 'rgb') {
+            if( format === 'rgb' ) {
                 // Returns RGB(A) string
                 var rgb = hex2rgb(hex),
                     opacity = input.attr('data-opacity') === '' ? 1 : keepWithin( parseFloat( input.attr('data-opacity') ).toFixed(2), 0, 1 );

-- 
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