Revert "(fix) JavaScript syntax error in 'asCSSIdentifier'"

This reverts commit 9897cee779.
pull/89/head
Ludovic Marcotte 2015-06-10 16:30:56 -04:00
parent 9897cee779
commit 662d06d24a
1 changed files with 1 additions and 5 deletions

View File

@ -73,10 +73,6 @@ String.prototype.decodeEntities = function() {
});
};
String.prototype.unescapeHTMLEntities = function() {
return this.unescapeHTML().replace(/"/g,'"');
};
String.prototype.asDate = function () {
var newDate;
var date = this.split("/");
@ -101,7 +97,7 @@ String.prototype.asDate = function () {
String.prototype.asCSSIdentifier = function() {
var characters = [ '_' , '\\.', '#' , '@' , '\\*', ':' , ';' , ',' , ' ',
'\\(', '\\)', '\\[', '\\]', '\\{', '\\}',
"'", '"', '&', '\\+' ];
, "'", '"', '&', '\\+' ];
var escapeds = [ '_U_', '_D_', '_H_', '_A_', '_S_', '_C_', '_SC_', '_CO_', '_SP_',
'_LP_', '_RP_', '_LS_', '_RQ_', '_LC_', '_RC_',
'_SQ_', '_DQ_', '_AM_', '_P_' ];