[Pkg-javascript-commits] [jquery-minicolors] 38/46: typeof test for rgba[3]

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 39942abb6dab6369f8176f0655755f930d3fedb9
Author: harisrozak <harisrozak at gmail.com>
Date:   Wed Oct 7 21:31:33 2015 +0700

    typeof test for rgba[3]
---
 jquery.minicolors.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/jquery.minicolors.js b/jquery.minicolors.js
index a7ec793..6daaa51 100644
--- a/jquery.minicolors.js
+++ b/jquery.minicolors.js
@@ -771,7 +771,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