mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 13:07:02 +00:00
Fix for UID returning different values every time for CPString.
Reviewed by me.
This commit is contained in:
@@ -527,13 +527,13 @@ var CPStringRegexSpecialCharacters = [
|
||||
- (unsigned)UID
|
||||
{
|
||||
var hash = CPStringHashes.valueForKey(self);
|
||||
|
||||
|
||||
if (!hash)
|
||||
{
|
||||
hash = _objj_generateObjectHash();
|
||||
CPStringHashes.setValueForKey(hash, self);
|
||||
CPStringHashes.setValueForKey(self, hash);
|
||||
}
|
||||
|
||||
|
||||
return hash;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user