[dali_1.4.26] Merge branch 'devel/master'
[platform/core/uifw/dali-toolkit.git] / plugins / dali-script-v8 / src / animation / constrainer-api.cpp
index 701f4d4..d15097a 100644 (file)
@@ -116,14 +116,8 @@ bool GetApplyParameters( const v8::FunctionCallbackInfo< v8::Value >& args, Acto
       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
@@ -140,15 +134,9 @@ bool GetApplyParameters( const v8::FunctionCallbackInfo< v8::Value >& args, Acto
       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
     {
@@ -210,7 +198,7 @@ bool GetApplyParameters( const v8::FunctionCallbackInfo< v8::Value >& args, Acto
  *        var constraintPosition = {  "target":targetActor,
  *                                    "targetProperty":"position",
  *                                    "source":sourceActor,
- *                                    "sourceProperty":"color-alpha",
+ *                                    "sourceProperty":"colorAlpha",
  *                                    "range":range
  *                                    "wrap":wrap
  *                                 };