From 51e682335bb66c0ab163eb9fc48e41e43c3fac6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Wallstro=CC=88m?= Date: Thu, 7 Mar 2013 12:37:35 +0100 Subject: [PATCH] Use UID instead of hash. --- AppKit/CPKeyValueBinding.j | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AppKit/CPKeyValueBinding.j b/AppKit/CPKeyValueBinding.j index 705ec8be6..ab9a9f369 100644 --- a/AppKit/CPKeyValueBinding.j +++ b/AppKit/CPKeyValueBinding.j @@ -347,7 +347,7 @@ var CPBindingOperationAnd = 0, - (void)_placeholderForMarker:aMarker { - var placeholder = _placeholderForMarker[[aMarker hash]]; + var placeholder = _placeholderForMarker[[aMarker UID]]; if (placeholder) return placeholder['value']; @@ -359,14 +359,14 @@ var CPBindingOperationAnd = 0, { if (isDefault) { - var existingPlaceholder = _placeholderForMarker[[aMarker hash]]; + var existingPlaceholder = _placeholderForMarker[[aMarker UID]]; // Don't overwrite an explicitly set placeholder with a default. if (existingPlaceholder && !existingPlaceholder['isDefault']) return; } - _placeholderForMarker[[aMarker hash]] = { 'isDefault': isDefault, 'value': aPlaceholder }; + _placeholderForMarker[[aMarker UID]] = { 'isDefault': isDefault, 'value': aPlaceholder }; } @end