mirror of
https://github.com/less/less.js.git
synced 2026-02-11 15:34:57 -05:00
rename is-* functions to is*
This commit is contained in:
@@ -175,28 +175,28 @@ tree.functions = {
|
||||
throw { type: "Argument", message: "argument must be a string" };
|
||||
}
|
||||
},
|
||||
'is-color': function (n) {
|
||||
iscolor: function (n) {
|
||||
return this._isa(n, tree.Color);
|
||||
},
|
||||
'is-number': function (n) {
|
||||
isnumber: function (n) {
|
||||
return this._isa(n, tree.Dimension);
|
||||
},
|
||||
'is-string': function (n) {
|
||||
isstring: function (n) {
|
||||
return this._isa(n, tree.Quoted);
|
||||
},
|
||||
'is-keyword': function (n) {
|
||||
iskeyword: function (n) {
|
||||
return this._isa(n, tree.Keyword);
|
||||
},
|
||||
'is-url': function (n) {
|
||||
isurl: function (n) {
|
||||
return this._isa(n, tree.URL);
|
||||
},
|
||||
'is-pixel': function (n) {
|
||||
ispixel: function (n) {
|
||||
return (n instanceof tree.Dimension) && n.unit === 'px' ? tree.True : tree.False;
|
||||
},
|
||||
'is-percentage': function (n) {
|
||||
ispercentage: function (n) {
|
||||
return (n instanceof tree.Dimension) && n.unit === '%' ? tree.True : tree.False;
|
||||
},
|
||||
'is-em': function (n) {
|
||||
isem: function (n) {
|
||||
return (n instanceof tree.Dimension) && n.unit === 'em' ? tree.True : tree.False;
|
||||
},
|
||||
_isa: function (n, Type) {
|
||||
|
||||
Reference in New Issue
Block a user