[Pkg-javascript-commits] [less.js] 07/88: Update functions.js

Jonas Smedegaard dr at jones.dk
Mon Oct 26 23:22:21 UTC 2015


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

js pushed a commit to annotated tag v1.7.0
in repository less.js.

commit 0f2926b4d8f8481e28e28faf3c09744d2648cae5
Author: deviprsd21 <deviprsd21 at gmail.com>
Date:   Sat Jan 11 17:52:25 2014 +0530

    Update functions.js
    
    max(0, 1em, 2, 4px) //returns max(2, 4px) on the basis of first enter basis, as 2 gets em unit. Now em and px are incompatible till latest version of LESS.
---
 lib/less/functions.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/less/functions.js b/lib/less/functions.js
index 85145b7..c1d9958 100644
--- a/lib/less/functions.js
+++ b/lib/less/functions.js
@@ -277,7 +277,7 @@ tree.functions = {
             }
             currentUnified = current.unify();
             unit = currentUnified.unit.toString() === "" && unitStatic !== undefined ? unitStatic : currentUnified.unit.toString();			
-            unitStatic = unit !== "" && unitStatic === undefined || unit !== "" && order[0].unify().unit.toString() === "" ? unit : unitStatic;
+            unitStatic = unit !== "" && unitStatic === undefined ? unit : unitStatic;
             values[unit] = values[""] !== undefined && unit !== "" && unit === unitStatic ? values[""] : values[unit];
             j = values[unit];
             if (j === undefined) {

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



More information about the Pkg-javascript-commits mailing list