Fixed: added a boolean to avoid to addObservers seveal times

This commit is contained in:
Alexandre Wilhelm
2014-08-20 15:23:10 -07:00
parent ce0233d0a2
commit bd20050db8
+9
View File
@@ -228,6 +228,8 @@ var CPViewFlags = { },
Function _toolTipFunctionIn;
Function _toolTipFunctionOut;
BOOL _toolTipInstalled;
BOOL _isObserving;
}
/*
@@ -844,14 +846,21 @@ var CPViewFlags = { },
while (count--)
[_subviews[count] _removeObservers];
_isObserving = NO;
}
- (void)_addObservers
{
if (_isObserving)
return;
var count = [_subviews count];
while (count--)
[_subviews[count] _addObservers];
_isObserving = YES;
}
/*!