Fixing a bug caused by the function inline.

This commit is contained in:
Derek Hammer committed 2010-12-01 20:12:12 -08:00
1 parent ae5d56471f
commit d4d831b9ac
1 file changed
+1 -1
+1 -1
View File
@@ -135,7 +135,7 @@ var CPStringRegexSpecialCharacters = [
*/
- (id)initWithString:(CPString)aString
{
if (aClass === CPString)
if ([self class] === CPString)
return String(aString);
var result = new String(aString);