fixed: text sizing did not work for javascript function names

This commit is contained in:
daboe01 committed 2016-05-23 17:14:13 +02:00
1 parent 7acb30b981
commit 59de0e7a4a
1 file changed
+1 -1
+1 -1
View File
@@ -94,7 +94,7 @@ CPStringSizeCachingEnabled = YES;
size = CPStringSizeWithFontInWidthCache[self][cacheKey];
if (size !== undefined)
if (CPStringSizeWithFontInWidthCache[self].hasOwnProperty(cacheKey) && size !== undefined)
return CGSizeMakeCopy(size);
if (!CPStringSizeDidTestCanvasSizingValid)