From 7d62b6e1ebb259cf30bdd533d40ea59bc839878a Mon Sep 17 00:00:00 2001 From: Aparajita Fishman Date: Mon, 28 Mar 2011 23:50:56 -0400 Subject: [PATCH] Made the defaults global constants --- AppKit/CPFont.j | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/AppKit/CPFont.j b/AppKit/CPFont.j index 7b7df7874..897ef4971 100644 --- a/AppKit/CPFont.j +++ b/AppKit/CPFont.j @@ -25,13 +25,13 @@ @import "CPView.j" +CPFontDefaultSystemFontFace = @"Arial, sans-serif"; +CPFontDefaultSystemFontSize = 12; var _CPFonts = {}, - _CPFontSystemFontFace = @"Arial, sans-serif", + _CPFontSystemFontFace = CPFontDefaultSystemFontFace, _CPFontSystemFontSize = 12, - _CPFontDefaultSystemFontFace = @"Arial, sans-serif", - _CPFontDefaultSystemFontSize = 12, - _CPFontFallbackFaces = _CPFontDefaultSystemFontFace.split(", "), + _CPFontFallbackFaces = CPFontDefaultSystemFontFace.split(", "), _CPFontStripRegExp = new RegExp("(^\\s*[\"']?|[\"']?\\s*$)", "g");