mirror of
https://github.com/less/less.js.git
synced 2026-02-09 22:45:28 -05:00
Removed toLowerCase function call so the function name remains the same
when used with a mixin and add test for rotateX
This commit is contained in:
@@ -563,16 +563,17 @@ less.Parser = function Parser(env) {
|
||||
// The arguments are parsed with the `entities.arguments` parser.
|
||||
//
|
||||
call: function () {
|
||||
var name, args, alpha_ret, index = i;
|
||||
var name, nameLC, args, alpha_ret, index = i;
|
||||
|
||||
if (! (name = /^([\w-]+|%|progid:[\w\.]+)\(/.exec(chunks[j]))) return;
|
||||
|
||||
name = name[1].toLowerCase();
|
||||
name = name[1];
|
||||
nameLC = name.toLowerCase();
|
||||
|
||||
if (name === 'url') { return null }
|
||||
if (nameLC === 'url') { return null }
|
||||
else { i += name.length }
|
||||
|
||||
if (name === 'alpha') {
|
||||
if (nameLC === 'alpha') {
|
||||
alpha_ret = $(this.alpha);
|
||||
if(typeof alpha_ret !== 'undefined') {
|
||||
return alpha_ret;
|
||||
|
||||
Reference in New Issue
Block a user