Underscore prefix on private methods

This commit is contained in:
cacaodev
2016-06-12 10:52:19 +02:00
parent e063ff5e54
commit 82ce626d8a
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -293,7 +293,7 @@ CPLog.debug(_cmd + "context stack =" + _CPAnimationContextStack);
cssAnimations.push(cssAnimation);
}
var css_mapping = [[aTargetView class] cssPropertiesForKeyPath:keyPath];
var css_mapping = [[aTargetView class] _cssPropertiesForKeyPath:keyPath];
[css_mapping enumerateObjectsUsingBlock:function(aDict, anIndex, stop)
{
+4 -4
View File
@@ -110,7 +110,7 @@ var DEFAULT_CSS_PROPERTIES = nil;
@implementation CPView (CPAnimatablePropertyContainer)
+ (CPDictionary)defaultCSSProperties
+ (CPDictionary)_defaultCSSProperties
{
if (DEFAULT_CSS_PROPERTIES == nil)
{
@@ -131,9 +131,9 @@ var DEFAULT_CSS_PROPERTIES = nil;
return DEFAULT_CSS_PROPERTIES;
}
+ (CPArray)cssPropertiesForKeyPath:(CPString)aKeyPath
+ (CPArray)_cssPropertiesForKeyPath:(CPString)aKeyPath
{
return [[self defaultCSSProperties] objectForKey:aKeyPath];
return [[self _defaultCSSProperties] objectForKey:aKeyPath];
}
+ (Class)animatorClass
@@ -168,7 +168,7 @@ var DEFAULT_CSS_PROPERTIES = nil;
return nil;
}
if ([self cssPropertiesForKeyPath:aKey] !== nil)
if ([self _cssPropertiesForKeyPath:aKey] !== nil)
return [CAAnimation animation];
return nil;