Fixed CPFontTest, removed unused RegExp from CPFont

This commit is contained in:
Aparajita Fishman committed 2011-03-10 19:19:32 -05:00
1 parent a20b0a7dca
commit 239b6ed79d
4 files changed
+51 -11

No files matched your search

+1 -2
View File
@@ -32,8 +32,7 @@ var _CPFonts = {},
_CPFontDefaultSystemFontFace = @"Arial, sans-serif",
_CPFontDefaultSystemFontSize = 12,
_CPFontFallbackFaces = _CPFontDefaultSystemFontFace.split(", "),
_CPFontStripRegExp = new RegExp("(^\\s*[\"']?|[\"']?\\s*$)", "g"),
_CPFontStripPropertiesRegExp = new RegExp("^(italic |bold )*\\d+px ");
_CPFontStripRegExp = new RegExp("(^\\s*[\"']?|[\"']?\\s*$)", "g");
#define _CPFontNormalizedNames(aName) _CPFontNormalizedNameArray(aName).join(", ")