[Pkg-javascript-commits] [jquery-minicolors] 34/46: Fixed undefined not to be a string!

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 7924ae641e23b57a5db2d5842d2198b6e10acf0f
Author: Cyril Rezé <cyril.reze at joomlic.com>
Date:   Tue Oct 6 13:04:38 2015 +0200

    Fixed undefined not to be a string!
---
 jquery.minicolors.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/jquery.minicolors.js b/jquery.minicolors.js
index e271f81..7c085f0 100644
--- a/jquery.minicolors.js
+++ b/jquery.minicolors.js
@@ -761,7 +761,7 @@
         }
 
         // Return RGBA string
-        if(typeof(rgba[3]) !== 'undefined' && rgba[3] <= 1) {
+        if( typeof(rgba[3]) !== undefined && rgba[3] <= 1 ) {
             return 'rgba(' + rgba[0] + ', ' + rgba[1] + ', ' + rgba[2] + ', ' + rgba[3] + ')';
         } else {
             return 'rgb(' + rgba[0] + ', ' + rgba[1] + ', ' + rgba[2] + ')';

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