rename is-* functions to is*

This commit is contained in:
Alexis Sellier
2012-01-07 01:33:54 +01:00
parent 66833352fd
commit e69433b8d1
2 changed files with 17 additions and 17 deletions

View File

@@ -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) {