[Pkg-javascript-commits] [less.js] 08/88: Improved min/max function, 2 new Built in function

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 b77b02091aa01609412f6b4d5e43d88002623d82
Author: deviprsd21 <deviprsd21 at gmail.com>
Date:   Sat Jan 11 17:53:57 2014 +0530

    Improved min/max function, 2 new Built in function
    
    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 c1d9958..68d93a3 100644
--- a/lib/less/functions.js
+++ b/lib/less/functions.js
@@ -269,7 +269,7 @@ tree.functions = {
         var i, j, current, currentUnified, referenceUnified, unit, unitStatic,
             order  = [], // elems only contains original argument values.
             values = {}; // key is the unit.toString() for unified tree.Dimension values,
-                         // value is the index into the order array.
+                         // value is the index into the order array
         for (i = 0; i < args.length; i++) {
             current = args[i];
             if (!(current instanceof tree.Dimension)) {

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