[Pkg-javascript-commits] [jquery-minicolors] 33/46: Replace "hex" by "value" in change event function

David Prévot taffit at moszumanska.debian.org
Sun Oct 25 17:18:27 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 9008812af61d8d241c75a50ac00f83681238660a
Author: Cyril Rezé <cyril.reze at joomlic.com>
Date:   Mon Oct 5 19:20:46 2015 +0200

    Replace "hex" by "value" in change event function
    
    Replace "hex" by "value" in change event function, since we have now rgb(a) and keywords values available as input values.
---
 index.html | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/index.html b/index.html
index 54a1f94..734a7ba 100644
--- a/index.html
+++ b/index.html
@@ -78,11 +78,11 @@
                     letterCase: $(this).attr('data-letterCase') || 'lowercase',
                     opacity: $(this).attr('data-opacity'),
                     position: $(this).attr('data-position') || 'bottom left',
-                    change: function(hex, opacity) {
-                        if( !hex ) return;
-                        if( opacity ) hex += ', ' + opacity;
+                    change: function(value, opacity) {
+                        if( !value ) return;
+                        if( opacity ) value += ', ' + opacity;
                         if( typeof console === 'object' ) {
-                            console.log(hex);
+                            console.log(value);
                         }
                     },
                     theme: 'bootstrap'
@@ -634,8 +634,8 @@ rgba(0, 82, 148, .75)
                     <p>Fires when the value of the color picker changes. The <code>this</code> keyword will reference the original input element.
 <pre>
 $(<em>selector</em>).minicolors({
-    change: function(hex, opacity) {
-        console.log(hex + ' - ' + opacity);
+    change: function(value, opacity) {
+        console.log(value + ' - ' + opacity);
     }
 });
 </pre>

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