X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=plugins%2Fdali-script-v8%2Fsrc%2Futils%2Fv8-utils.cpp;h=346619852b606f46dd82d9a22a38df719b956e06;hb=ebdb9f3433e77a3e4ad7ab9f6fec5a5da108314a;hp=697b9dd3b53d32caf68808cb9459ea8dfebfdb43;hpb=a63af0b21a2d5712352d5fa7b52f828c27a05867;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/plugins/dali-script-v8/src/utils/v8-utils.cpp b/plugins/dali-script-v8/src/utils/v8-utils.cpp index 697b9dd..3466198 100644 --- a/plugins/dali-script-v8/src/utils/v8-utils.cpp +++ b/plugins/dali-script-v8/src/utils/v8-utils.cpp @@ -422,18 +422,12 @@ Property::Value GetPropertyValueFromObject( bool& found, v8::Isolate* isolate, c v8::Local v = value->ToNumber(); return Dali::Property::Value(static_cast(v->Value())); } - else if( value->IsInt32() ) + else if( value->IsInt32() || value->IsUint32() ) { found = true; v8::Local v = value->ToInt32(); return Dali::Property::Value(static_cast(v->Value())); } - else if ( value->IsUint32() ) - { - found = true; - v8::Local v = value->ToUint32(); - return Dali::Property::Value(static_cast(v->Value())); - } return daliPropertyValue; } @@ -894,11 +888,6 @@ void CreatePropertyMap( v8::Isolate* isolate, const Property::Map& map, v8::Loca v8Value = v8::Integer::New( isolate, value.Get()); break; } - case Dali::Property::UNSIGNED_INTEGER: - { - v8Value = v8::Integer::New( isolate, value.Get()); - break; - } case Dali::Property::STRING: { std::string string = value.Get< std::string >();