targetPropertyIndex = targetActor.GetPropertyIndex( propertyName );
if( targetPropertyIndex == Property::INVALID_INDEX )
{
- std::string convertedName = V8Utils::JavaScriptNameToPropertyName( propertyName );
- targetPropertyIndex = targetActor.GetPropertyIndex( convertedName );
-
- if( targetPropertyIndex == Property::INVALID_INDEX )
- {
- DALI_SCRIPT_EXCEPTION( isolate, "Target property not found" );
- return false;
- }
+ DALI_SCRIPT_EXCEPTION( isolate, "Target property not found" );
+ return false;
}
}
else
sourcePropertyIndex = targetActor.GetPropertyIndex( propertyName );
if( sourcePropertyIndex == Property::INVALID_INDEX )
{
- std::string convertedName = V8Utils::JavaScriptNameToPropertyName( propertyName );
- sourcePropertyIndex = targetActor.GetPropertyIndex( convertedName );
-
- if( sourcePropertyIndex == Property::INVALID_INDEX )
- {
- DALI_SCRIPT_EXCEPTION( isolate, "Source property not found" );
- return false;
+ DALI_SCRIPT_EXCEPTION( isolate, "Source property not found" );
+ return false;
}
- }
}
else
{
* var constraintPosition = { "target":targetActor,
* "targetProperty":"position",
* "source":sourceActor,
- * "sourceProperty":"color-alpha",
+ * "sourceProperty":"colorAlpha",
* "range":range
* "wrap":wrap
* };