Skip to content

Commit

Permalink
Duplicated percentage checking
Browse files Browse the repository at this point in the history
The percentage checking was duplicated
  • Loading branch information
miguelgf committed Jun 26, 2013
1 parent 3cbd92d commit 3a55293
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/css/PropertyValuePart.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@ function PropertyValuePart(text, line, col){

}

} else if (/^([+\-]?[\d\.]+)%$/i.test(text)){ //percentage
this.type = "percentage";
this.value = +RegExp.$1;
} else if (/^([+\-]?[\d\.]+)%$/i.test(text)){ //percentage
this.type = "percentage";
this.value = +RegExp.$1;
Expand Down Expand Up @@ -173,4 +170,4 @@ PropertyValuePart.prototype.constructor = PropertyValuePart;
*/
PropertyValuePart.fromToken = function(token){
return new PropertyValuePart(token.value, token.startLine, token.startCol);
};
};

0 comments on commit 3a55293

Please sign in to comment.